Skip to content

Commit

Permalink
Refactor coverage job (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
kytta authored Dec 3, 2024
1 parent 952b364 commit bfe3665
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,19 +77,19 @@ jobs:
with:
python-version: 3.x

- uses: astral-sh/setup-uv@v1
- run: uv pip install --system --upgrade coverage[toml] covdefaults
- uses: astral-sh/setup-uv@v2
- run: uv tool install --with covdefaults coverage
- uses: actions/download-artifact@v4
with:
pattern: coverage-data-*
merge-multiple: true

- name: Combine coverage & report
run: |
python -Im coverage combine
python -Im coverage report || true
python -Im coverage html --skip-covered --skip-empty || true
python -Im coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
coverage combine
coverage html --skip-covered --skip-empty --fail-under=0
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
coverage report
- name: Upload HTML report
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit bfe3665

Please sign in to comment.