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

Upload test coverage to Codecov #1671

Merged
merged 1 commit into from
Mar 1, 2024
Merged

Upload test coverage to Codecov #1671

merged 1 commit into from
Mar 1, 2024

Conversation

JeanChristopheMorinPerso
Copy link
Member

@JeanChristopheMorinPerso JeanChristopheMorinPerso commented Mar 1, 2024

Fixes #1653

I initially wanted to use SonarCloud because it's already set tup, but we can't upload coverage for PRs coming from forks. That's because SonarCloud really wants an API token and GH Actions secrets are not available on PRs coming from forks.

So I instead use codecov. It's a service I use and is highly customizable and uploading coverage on fork PRs works without tokens.

This PR also enhances the development experience a bit. rez-selftest used to cd into the tests folder, which means that coverage result would be stored in the tests folder. This makes it very hard to find it, particularly when using the install script. pytest would just say "stored in htmlcov dir"... The new behavior is to not change the current working directory.

Copy link

codecov bot commented Mar 1, 2024

Welcome to Codecov 🎉

Once merged to your default branch, Codecov will compare your coverage reports and display the results in this comment.

Thanks for integrating Codecov - We've got you covered ☂️

Signed-off-by: Jean-Christophe Morin <[email protected]>
@JeanChristopheMorinPerso JeanChristopheMorinPerso changed the title Coverage Upload test coverage to Codecov Mar 1, 2024
@JeanChristopheMorinPerso JeanChristopheMorinPerso marked this pull request as ready for review March 1, 2024 21:01
@JeanChristopheMorinPerso JeanChristopheMorinPerso requested a review from a team as a code owner March 1, 2024 21:01
@JeanChristopheMorinPerso JeanChristopheMorinPerso merged commit 91db537 into main Mar 1, 2024
100 checks passed
@JeanChristopheMorinPerso JeanChristopheMorinPerso deleted the coverage branch March 1, 2024 21:13
Pixel-Minions added a commit to Pixel-Minions/rez that referenced this pull request Sep 26, 2024
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.

Track code coverage
1 participant