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

CI: Always upload code coverage reports to codecov #3246

Merged
merged 3 commits into from
May 15, 2024
Merged

Conversation

seisman
Copy link
Member

@seisman seisman commented May 12, 2024

Description of proposed changes

The "Upload coverage to codecov" step is by default skipped if any tests fail (e.g., https://github.com/GenericMappingTools/pygmt/actions/runs/9050958726/job/24866916947), then we may see a coverage decrease like:
image

This PR adds if: success() || failure() to the step so that it always runs no matter if tests pass or fail. The solution is from https://stackoverflow.com/a/58859404.

@seisman seisman marked this pull request as ready for review May 12, 2024 15:14
@seisman seisman added maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog needs review This PR has higher priority and needs review. labels May 12, 2024
@seisman seisman added this to the 0.13.0 milestone May 12, 2024
@seisman seisman removed the needs review This PR has higher priority and needs review. label May 15, 2024
@seisman seisman merged commit b3d7575 into main May 15, 2024
10 of 14 checks passed
@seisman seisman deleted the ci/codecov-always branch May 15, 2024 15:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
maintenance Boring but important stuff for the core devs skip-changelog Skip adding Pull Request to changelog
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant