Skip to content

Commit

Permalink
Make coverage HTML report available on CI failure
Browse files Browse the repository at this point in the history
  • Loading branch information
Siecje committed Feb 9, 2024
1 parent f4c1cb3 commit 254ed6a
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,4 +34,11 @@ jobs:
- name: Tests
run: |
coverage run --branch -m pytest
coverage html --omit='/tmp/*'
coverage report --omit='/tmp/*' --fail-under=100
- name: Archive code coverage results
if: ${{ failure() }}
uses: actions/upload-artifact@v4
with:
name: code-coverage-report-${{ matrix.python-version }}
path: htmlcov/

0 comments on commit 254ed6a

Please sign in to comment.