Skip to content

Commit ba79cd6

Browse files
committed
feat: coverage in CI
1 parent 2d49b2b commit ba79cd6

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

.github/workflows/ci.yaml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,13 @@ jobs:
2727
- uses: astral-sh/ruff-action@v3
2828

2929
- name: Run tests with coverage
30-
run: uv run pytest tests
30+
run: uv run coverage run -m pytest
3131

32-
# TODO: figure out how to use this
33-
# - name: Produce coverage report
34-
# run: uv run coverage report -m
32+
- name: Produce coverage report
33+
run: uv run coverage xml
34+
35+
- name: Show coverage report
36+
uses: orgoro/[email protected]
37+
with:
38+
coverageFile: ./coverage.xml
39+
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)