Fix Codecov v5 coverage upload: explicit files path and fail_ci_if_error#308
Open
Fix Codecov v5 coverage upload: explicit files path and fail_ci_if_error#308
Conversation
Owner
|
What are you checking here? |
Co-authored-by: jamiebull1 <3817160+jamiebull1@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Update ReadTheDocs config and Codecov action to version 5
Fix Codecov v5 coverage upload: explicit files path and fail_ci_if_error
Mar 14, 2026
jamiebull1
approved these changes
Mar 14, 2026
Owner
|
This is still failing |
There was a problem hiding this comment.
Pull request overview
Updates the CI workflow to make Codecov uploads reliable after moving to codecov/codecov-action@v5, by explicitly pointing the action at the generated coverage report and surfacing upload failures.
Changes:
- Configure Codecov upload to use an explicit report path (
./coverage.xml). - Make Codecov upload failures fail the CI job (
fail_ci_if_error: true).
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
You can also share your feedback on Copilot code review. Take the survey.
Comment on lines
41
to
+46
| if: matrix.python-version == '3.13' | ||
| uses: codecov/codecov-action@v5 | ||
| with: | ||
| token: ${{ secrets.CODECOV_TOKEN }} | ||
| files: ./coverage.xml | ||
| fail_ci_if_error: true |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
After upgrading to
codecov/codecov-action@v5, coverage uploads silently failed — Codecov reported "Missing Head Commit" and showed no coverage data because v5 doesn't reliably auto-discovercoverage.xml.Changes
.github/workflows/ci.ymlfiles: ./coverage.xmlto explicitly target the report generated bypytest --cov-report=xmlfail_ci_if_error: trueso future upload failures surface as CI failures rather than silent passesOriginal prompt
📱 Kick off Copilot coding agent tasks wherever you are with GitHub Mobile, available on iOS and Android.