Skip to content

Commit f305204

Browse files
committed
📦👷 Update the Codecov upload condition to check if the test step was not skipped
1 parent 9495253 commit f305204

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,9 +139,10 @@ jobs:
139139
- name: List packages
140140
run: uv pip list
141141
- name: Run tests
142+
id: run_tests
142143
run: uv run --no-sync pytest --cov-branch --cov-report=xml --junitxml=junit.xml
143144
- name: Upload test results to Codecov
144-
if: ${{ !cancelled() }}
145+
if: ${{ !cancelled() && steps.run_tests.conclusion != 'skipped' }}
145146
uses: codecov/test-results-action@v1
146147
with:
147148
token: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)