Skip to content

Commit 42c2227

Browse files
committed
Update test workflow to build coverage file and improve pytest command
1 parent a9b9d2f commit 42c2227

File tree

2 files changed

+81
-3
lines changed

2 files changed

+81
-3
lines changed

.github/workflows/test.yaml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,9 @@ jobs:
2424
with:
2525
python-version: "3.10"
2626

27-
- name: Run pytest
27+
- name: Build coverage file
2828
run: |
29-
set -o pipefail
30-
uv run pytest --junitxml=pytest.xml | tee pytest-coverage.txt
29+
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=app tests/ | tee pytest-coverage.txt
3130
3231
- name: Pytest coverage comment
3332
uses: MishaKav/pytest-coverage-comment@v1

uv.lock

Lines changed: 79 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)