Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Report coverage in CI #2

Merged
merged 1 commit into from
Dec 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: Coverage Report
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 and report coverage
run: |
uv tool install coverage
coverage combine
# Report to summary
coverage report --format=markdown >> $GITHUB_STEP_SUMMARY
# Report to console
coverage report
Loading