Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix broken upload to Codecov #142

Merged
merged 1 commit into from
Nov 19, 2024
Merged

Fix broken upload to Codecov #142

merged 1 commit into from
Nov 19, 2024

Conversation

pgiraud
Copy link
Member

@pgiraud pgiraud commented Nov 19, 2024

Codecov now requires a TOKEN to upload results.
We update the version of the github action and use the token added in the project settings.

We write the coverage report as XML in a file for codecov upload to be happy. With the default .coverage file, codecov reports a "no coverage file found" error.

Fixes #140

@dlax
Copy link
Member

dlax commented Nov 19, 2024

Shouldn't we get a comment posted by codecov with the result?

@pgiraud
Copy link
Member Author

pgiraud commented Nov 19, 2024

Shouldn't we get a comment posted by codecov with the result?

There's one. Even if it doesn't seem relevant for the current PR. https://github.com/dalibo/pgtoolkit/actions/runs/11911363886/job/33192697186#step:6:51

@codecov-commenter
Copy link

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.53%. Comparing base (6a656a7) to head (5aa10db).
Report is 38 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #142      +/-   ##
==========================================
+ Coverage   97.48%   97.53%   +0.04%     
==========================================
  Files          10       10              
  Lines        1191     1215      +24     
==========================================
+ Hits         1161     1185      +24     
  Misses         30       30              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.


🚨 Try these New Features:

@pgiraud
Copy link
Member Author

pgiraud commented Nov 19, 2024

Oh, apparently I didn't provide the correct token in project settings. Fixed.

Codecov now requires a TOKEN to upload results.
We update the version of the github action and use the token added in the
project settings.

We write the coverage report as XML in a file for codecov upload to be happy.
With the default .coverage file, codecov reports a "no coverage file found"
error.
@pgiraud pgiraud merged commit 3aba6a9 into master Nov 19, 2024
8 checks passed
@pgiraud pgiraud deleted the codecov_update branch November 19, 2024 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

codecov upload fails
3 participants