Skip to content

Commit 894aac7

Browse files
committed
Also upload test results to codecov
1 parent 11d62dc commit 894aac7

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/tests.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,15 @@ jobs:
2424
echo "$PWD/.venv/bin" >> $GITHUB_PATH
2525
uv sync --dev
2626
- name: Run tests with pytest and collect coverage
27-
run: pytest --cov=pdfbaker --cov-report=xml
27+
run:
28+
pytest --cov=pdfbaker --cov-report=xml --junitxml=junit.xml -o
29+
junit_family=legacy
2830
- name: Upload coverage to Codecov
2931
uses: codecov/codecov-action@v5
3032
with:
3133
token: ${{ secrets.CODECOV_TOKEN }}
34+
- name: Upload test results to Codecov
35+
if: ${{ !cancelled() }}
36+
uses: codecov/test-results-action@v1
37+
with:
38+
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)