Description
I’m trying to upload coverage reports with Github Actions. The upload process is working without an error, but at the end all commits have the “There was an error processing coverage reports” message on Codecov.
Here’s the Github Actions:
- name: Run tests 📈
run: |
pip install pytest
pip install pytest-cov
pytest --cov=./ --cov-report=xml
- name: Upload Coverage to Codecov 📦
uses: codecov/codecov-action@v1
with:
files: .coverage
flags: pytest
fail_ci_if_error: true
path_to_write_report: ./coverage/codecov_report.txt
verbose: false
Commit SHAs
26ead863c01ba9046b8df35f89fadd90838c49e3
Repository
https://github.com/recognai/rubrix
CI/CD or Build URL
https://github.com/recognai/rubrix/actions/runs/1033432918
Uploader
Please provide which uploader you are using and command used to run it (e.g. Bash, Node, Python, GitHub Actions, etc…). If you are not using the bash uploader, we recommend switching to it before opening an issue here.
Codecov Output
/usr/bin/bash codecov.sh -n -F pytest -Q github-action-v1.5.2 -Z -f .coverage -C 26ead863c01ba9046b8df35f89fadd90838c49e3 -q ./coverage/codecov_report.txt
[11](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:11)
[12](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:12) _____ _
[13](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:13) / ____| | |
[14](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:14)| | ___ __| | ___ ___ _____ __
[15](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:15)| | / _ \ / _` |/ _ \/ __/ _ \ \ / /
[16](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:16)| |___| (_) | (_| | __/ (_| (_) \ V /
[17](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:17) \_____\___/ \__,_|\___|\___\___/ \_/
[18](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:18) Bash-1.0.3
[19](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:19)
[20](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:20)
[21](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:21)==> git version 2.32.0 found
[22](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:22)==> curl 7.68.0 (x86_64-pc-linux-gnu) libcurl/7.68.0 OpenSSL/1.1.1f zlib/1.2.11 brotli/1.0.7 libidn2/2.2.0 libpsl/0.21.0 (+libidn2/2.2.0) libssh/0.9.3/openssl/zlib nghttp2/1.40.0 librtmp/2.3
[23](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:23)Release-Date: 2020-01-08
[24](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:24)Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtmp rtsp scp sftp smb smbs smtp smtps telnet tftp
[25](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:25)Features: AsynchDNS brotli GSS-API HTTP2 HTTPS-proxy IDN IPv6 Kerberos Largefile libz NTLM NTLM_WB PSL SPNEGO SSL TLS-SRP UnixSockets
[26](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:26)==> GitHub Actions detected.
[27](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:27) Env vars used:
[28](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:28) -> GITHUB_ACTIONS: true
[29](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:29) -> GITHUB_HEAD_REF: doc/badges
[30](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:30) -> GITHUB_REF: refs/pull/209/merge
[31](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:31) -> GITHUB_REPOSITORY: recognai/rubrix
[32](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:32) -> GITHUB_RUN_ID: 1033432918
[33](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:33) -> GITHUB_SHA: 0eed6731eebb2baa221b27c9e429869333d53df7
[34](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:34) -> GITHUB_WORKFLOW: CI
[35](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:35) project root: .
[36](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:36) Yaml found at: codecov.yml
[37](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:37) -> Found 1 reports
[38](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:38)==> Detecting git/mercurial file structure
[39](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:39)==> Reading reports
[40](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:40) + .coverage bytes=147456
[41](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:41)==> Appending adjustments
[42](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:42) https://docs.codecov.io/docs/fixing-reports
[43](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:43) -> No adjustments found
[44](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:44)==> Copying upload file to ./coverage/codecov_report.txt
[45](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:45)==> Gzipping contents
[46](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:46) 36K /tmp/codecov.doTnlx.gz
[47](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:47)==> Uploading reports
[48](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:48) url: [https://codecov.io](https://codecov.io/)
[49](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:49) query: branch=doc%2Fbadges&commit=26ead863c01ba9046b8df35f89fadd90838c49e3&build=1033432918&build_url=http%3A%2F%2Fgithub.com%2Frecognai%2Frubrix%2Factions%2Fruns%2F1033432918&name=&tag=&slug=recognai%2Frubrix&service=github-actions&flags=pytest&pr=209&job=CI&cmd_args=n,F,Q,Z,f,C,q
[50](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:50)-> Pinging Codecov
[51](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:51)https://codecov.io/upload/v4?package=github-action-v1.5.2-1.0.3&token=secret&branch=doc%2Fbadges&commit=26ead863c01ba9046b8df35f89fadd90838c49e3&build=1033432918&build_url=http%3A%2F%2Fgithub.com%2Frecognai%2Frubrix%2Factions%2Fruns%2F1033432918&name=&tag=&slug=recognai%2Frubrix&service=github-actions&flags=pytest&pr=209&job=CI&cmd_args=n,F,Q,Z,f,C,q
[52](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:52)-> Uploading to
[53](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:53)https://storage.googleapis.com/codecov/v4/raw/2021-07-15/8030E50B10F47B60870EA8D25C04BCBC/26ead863c01ba9046b8df35f89fadd90838c49e3/22e1c7ae-5083-4206-aeaf-54589018387a.txt?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=GOOG1EKKHVKCKHW7KBCGM7IHR55T63V2PAVJWLVFNITJHDU5G6R5IRN3LMWJA%2F20210715%2FUS%2Fs3%2Faws4_request&X-Amz-Date=20210715T094809Z&X-Amz-Expires=10&X-Amz-SignedHeaders=host&X-Amz-Signature=2c1c31388a7a3cd72b7df7517f023f215bae817a5efed053d11c2aadba71912f
[54](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:54) % Total % Received % Xferd Average Speed Time Time Time Current
[55](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:55) Dload Upload Total Spent Left Speed
[56](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:56)
[57](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:57) 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0
[58](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:58)100 36266 0 0 100 36266 0 155k --:--:-- --:--:-- --:--:-- 155k
[59](https://github.com/recognai/rubrix/runs/3075330734?check_suite_focus=true#step:9:59) -> Reports have been successfully queued for processing at https://codecov.io/github/recognai/rubrix/commit/26ead863c01ba9046b8df35f89fadd90838c49e3
Expected Results
A correctly uploaded coverage report
Actual Results
“There was an error processing coverage reports.”
Additional Information
When running locally the pytest command, the coverage report seems to be created fine.