Skip to content

Commit

Permalink
chore: add minimum threshold of 95% for coverage (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
italvi authored Aug 8, 2024
1 parent 668b9f2 commit f0fd3e0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,11 @@ jobs:
- name: Install package
run: poetry install
- name: Run pytest
run: |
poetry run coverage run -m pytest --junitxml=reports/unittest.xml
poetry run coverage report
poetry run coverage xml -o reports/py-coverage.cobertura.xml
run: poetry run coverage run -m pytest --junitxml=reports/unittest.xml
- name: Check coverage
run: poetry run coverage report --fail-under=95
- name: Save test results
run: poetry run coverage xml -o reports/py-coverage.cobertura.xml
- name: Archive test results
uses: actions/upload-artifact@89ef406dd8d7e03cfd12d9e0a4a378f454709029 # v4.3.5
with:
Expand Down

0 comments on commit f0fd3e0

Please sign in to comment.