Skip to content

Commit

Permalink
Use uv tool for coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
hynek committed Sep 18, 2024
1 parent 06f3fdf commit e1e35a4
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -92,16 +92,16 @@ jobs:

- name: Combine coverage & fail if it's <100%.
run: |
uv pip install --system --upgrade coverage[toml]
uv tool install coverage[toml]
python -Im coverage combine
python -Im coverage html --skip-covered --skip-empty
coverage combine
coverage html --skip-covered --skip-empty
# Report and write to summary.
python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
# Report again and fail if under 100%.
python -Im coverage report --fail-under=100
coverage report --fail-under=100
- name: Upload HTML report if check failed.
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit e1e35a4

Please sign in to comment.