I am using GitHub actions (for my Python library) to run a coverage report that is uploaded to CodeCov. After a lot of difficulty, I finally got the report running and uploaded to CodeCov. The problem is that the report says 100% of code in my tests was run (obviously) and 0% of everything except tests was run. Is there anything wrong with my codecov.yml file that is resulting in the coverage report only reporting on the code from the tests and not the code from the rest of the repo?
Codecov.yml file: https://github.com/MatthewReid854/reliability/blob/master/.github/workflows/codecov.yml
Codecov dashboard showing report results: https://app.codecov.io/gh/MatthewReid854/reliability
Thanks.
Tom from Codecov here.
tl;dr https://github.com/thomasrockhu/reliability/pull/1
Looks like there are a few things going on. First, you are pip installing the reliability repo. I think this is overwriting the reliability
module over the local version. This would mean that coverage might be generated for those files as opposed to the local ones.
Second, I added a blank conftest.py
file as indicated on this thread.
You should also note that Codecov needs to have a fetch-depth
> 1 or 0 for the actions/checkout
step.