Skip to content

Commit 082b5d6

Browse files
committed
Use CODECOV_TOKEN and make upload non-fatal
Update the testing CI workflow to pass the CODECOV_TOKEN (secrets.CODECOV_TOKEN) to the Codecov action and set fail_ci_if_error to false so a failed upload won't break CI. Also add an inline note on the step name indicating the upload may need to be disabled if the token isn't configured.
1 parent b6f3345 commit 082b5d6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/testing-ci.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,10 @@ jobs:
6868
python -m coverage report -m >> "$GITHUB_STEP_SUMMARY" || true
6969
echo '```' >> "$GITHUB_STEP_SUMMARY"
7070
71-
- name: Upload coverage to Codecov
71+
- name: Upload coverage to Codecov # NOTE : may need to disable this if token is not setup
7272
if: github.event_name == 'pull_request' && (github.base_ref == 'main' || github.base_ref == 'master')
7373
uses: codecov/codecov-action@v5
7474
with:
75+
token: ${{ secrets.CODECOV_TOKEN }}
7576
files: ./coverage.xml
76-
fail_ci_if_error: true
77+
fail_ci_if_error: false

0 commit comments

Comments
 (0)