Skip to content

Commit

Permalink
Add coverage report steps to test workflow and upload artifacts
Browse files Browse the repository at this point in the history
  • Loading branch information
grelinfo committed Nov 20, 2024
1 parent b3abab5 commit 1b19456
Showing 1 changed file with 17 additions and 1 deletion.
18 changes: 17 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,30 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v3

- name: Get coverage report
uses: actions/download-artifact@v4
with:
name: coverage-report

- name: Test with pytest
run: uv run --all-extras --python ${{ matrix.python }} pytest --cov-append

coverage:
- name: Save coverage report
uses: actions/upload-artifact@v4
with:
name: coverage-report
path: coverage.xml

coverage-report:
name: Coverage report
runs-on: ubuntu-latest
needs: test
steps:
- name: Get coverage report
uses: actions/download-artifact@v4
with:
name: coverage-report

- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
Expand Down

0 comments on commit 1b19456

Please sign in to comment.