-
Notifications
You must be signed in to change notification settings - Fork 12
Add Codecov integration for test coverage tracking #110
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
base: unstable
Are you sure you want to change the base?
Conversation
Thanks for bringing up the idea! Like in #109, code coverage is a great idea, and I will tinker a little bit with Once again, thanks for the marvelous work! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hey @ivinjabraham. I did some research both on tarpaulin
and in the workflow in general.
In a nutshell, it seems that tarpaulin
is a good choice, and the workflow does the right steps on the right triggers. I left some inline review comments, so please see if you can address them. Feel free to ping me in case of any doubt.
9759952
to
c64d3b0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, @ivinjabraham, and thanks for the update! I think we are getting near to the merging point, but I just need to check things in the kworkflow org level. In the meantime, I added some simple inline comments, and I replied the comment you made from the last review. See if you can address them, please.
In any case, marvelous work!
c64d3b0
to
ea83bcb
Compare
- Added `.github/workflows/coverage.yml` to automate test coverage reports - Workflows run on every push and PR to `master` and `unstable` - Uploads data to Codecov Signed-off-by: Ivin Joel Abraham <[email protected]>
Correct, using v5 doesn't upload any of our source code. It's solely for uploading the coverage report. However, to associate reports with different refs, it would upload some git metadata such as commit hashes and branch information. Reference: https://about.codecov.io/security/#does-codecov-store-source-code |
On the front of uploading code and such, there are no worries. I was talking about CodeCov trying to push a commit into the repo. I don't know if I am mixing things, but I remember that when I tried v4, it failed due to it not being able to push the commit. About the rest, everything is looking legit, so I'll clear the front about the org, and come back here. |
AFAIK, this should never happen. |
Hey @ivinjabraham, unfortunately I still didn't solve the matter about a org-level secret for us to go forward with this PR. Everything else is legit, though. |
Thanks for letting me know and no worries! This isn't needed immediately. |
Hi @ivinjabraham. I put this PR as a draft for the time being, as this isn't urgent ATM. |
This PR adds Codecov integration to track code coverage. With this setup, Codecov will automatically analyze test coverage and post comments on PRs, helping us monitor changes in coverage over time. I believe this will be a good incentive to increase our coverage as well.
Requirements
Codecoverage needs a token from their their website. This needs to be put in GitHub secrets as it's referenced in the .yml file as
${{ secrets.CODECOV_TOKEN }}