Skip to content

Commit

Permalink
Report coverage in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
tahv committed Dec 22, 2024
1 parent 9b73206 commit 6d92bc7
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,4 +65,29 @@ jobs:
with:
name: coverage-data-${{ matrix.maya-version }}
path: .coverage.*
include-hidden-files: true
if-no-files-found: ignore

coverage:
name: Combine and report coverage
runs-on: ubuntu-latest
needs: tests
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v4
- uses: actions/setup-python@v5
with:
python-version-file: "pyproject.toml"
- name: Download coverage data
uses: actions/download-artifact@v4
with:
pattern: coverage-data-*
merge-multiple: true
- name: Combine coverage
run: |
uv tool install coverage
coverage combine
# Report to summary
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
# Report to console
coverage report

0 comments on commit 6d92bc7

Please sign in to comment.