Please check the troubleshooting guide before creating a ticket.
All fields below are required.
Description
Codecov integration with github is always showing 100% total coverage with 2 files in total. This is far from correct. The real results are closer to 98% total coverage with 4 files in total.
Commit SHAs
Repository
CI/CD or Build URL
Uploader
Github workflow action. codecov/codecov-action@v1
Codecov Output
@@ Coverage Diff @@
## master #5 +/- ##
=========================================
Coverage 100.00% 100.00%
=========================================
Files 2 2
Lines 107 107
Branches 8 8
=========================================
Hits 107 107
Expected Results
----------- coverage: platform linux, python 3.7.9-final-0 -----------
Name Stmts Miss Branch BrPart Cover
-------------------------------------------------------------
gogogate2_api/__init__.py 172 0 16 0 100%
gogogate2_api/cli.py 84 0 16 0 100%
gogogate2_api/common.py 226 6 48 2 96%
gogogate2_api/const.py 23 0 0 0 100%
-------------------------------------------------------------
TOTAL 505 6 80 2 98%
Coverage HTML written to dir build/coverage_report
Coverage XML written to file coverage.xml
Required test coverage of 98.0% reached. Total coverage: 98.29%
Actual Results
Files init.py and common.py are missing in the codecov output. The codecov build shows the files are present and the report also shows the coverage for the missing files.
Additional Information
I’ve been trying to troubleshoot this for some time. Codecov integration doesn’t seem to work as files are missing.