Print identification outputs #57
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Coverage | |
on: | |
push: | |
branches: [ main ] | |
paths: | |
- "src/**" | |
- "tests/**" | |
pull_request: | |
branches: [ main ] | |
paths: | |
- "src/**" | |
- "tests/**" | |
jobs: | |
coverage: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
- name: Install poetry | |
run: pipx install poetry | |
- name: Install dependencies | |
run: poetry install | |
- if: runner.os == 'Linux' | |
run: | | |
sudo apt update && sudo apt install -y libegl1-mesa-dev | |
- name: Check coverage of tests is at least 95% | |
run: poetry run pytest --cov=src/atomid --cov-report term-missing --cov-fail-under=95 tests/ | |
# Following not used currently | |
# - name: Build coverage file | |
# run: | | |
# poetry run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=src/atomid tests/ | tee pytest-coverage.txt | |
# - name: Pytest coverage comment | |
# uses: MishaKav/pytest-coverage-comment@main | |
# with: | |
# pytest-coverage-path: ./pytest-coverage.txt | |
# junitxml-path: ./pytest.xml | |
# - name: Check the output coverage | |
# run: | | |
# echo "Coverage Percentage - ${{ steps.coverageComment.outputs.coverage }}" | |
# echo "Coverage Color - ${{ steps.coverageComment.outputs.color }}" | |
# echo "Coverage Html - ${{ steps.coverageComment.outputs.coverageHtml }}" | |
# echo "Coverage Warnings - ${{ steps.coverageComment.outputs.warnings }}" | |
# echo "Coverage Errors - ${{ steps.coverageComment.outputs.errors }}" | |
# echo "Coverage Failures - ${{ steps.coverageComment.outputs.failures }}" | |
# echo "Coverage Skipped - ${{ steps.coverageComment.outputs.skipped }}" | |
# echo "Coverage Tests - ${{ steps.coverageComment.outputs.tests }}" | |
# echo "Coverage Time - ${{ steps.coverageComment.outputs.time }}" | |
# echo "Not Success Test Info - ${{ steps.coverageComment.outputs.notSuccessTestInfo }}" | |