Skip to content

Commit 782a42c

Browse files
committed
📦✅ Add JUnit XML output and test results upload to CI
1 parent 740ee14 commit 782a42c

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

‎project_name/.github/workflows/ci.yml.jinja‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -161,12 +161,17 @@ jobs:
161161
run: uv pip list
162162
- name: Run tests
163163
if: ${{ success() && steps.install_packages.outcome == 'success' }}
164-
run: uv run --no-sync pytest --cov-branch --cov-report=xml
164+
run: uv run --no-sync pytest --cov-branch --cov-report=xml --junitxml=junit.xml
165165
- name: Upload coverage reports to Codecov
166166
if: ${{ success() && steps.install_packages.outcome == 'success' }}
167167
uses: codecov/codecov-action@v5
168168
with:
169169
token: ${{ secrets.CODECOV_TOKEN }}
170+
- name: Upload test results to Codecov
171+
if: ${{ !cancelled() }}
172+
uses: codecov/test-results-action@v1
173+
with:
174+
token: ${{ secrets.CODECOV_TOKEN }}
170175
{%- endraw %}
171176

172177
pylint:

0 commit comments

Comments
 (0)