codecov not working #170
Replies: 7 comments 1 reply
-
Hello. As far as I checked your logs quickly, I can see that the coverage itself it calculated on GitHub Actions but the codecov command is failing to upload. Could you check codecov's documentation and configure your repository correctly?
|
Beta Was this translation helpful? Give feedback.
-
Hello @ymyzk, If I use the official codecov GitHub action directly with unittest it works, but if I use it running tests with tox it fails. |
Beta Was this translation helpful? Give feedback.
-
The same thing is happening to me in my repo tkinter-msgcat. Basically what I do is run coverage commands inside tox, and change dir to |
Beta Was this translation helpful? Give feedback.
-
@demberto maybe my solution works for you too:
Here you can see a workflow of a python/django package of mine where I use: concise matrix + coverage + codecov: https://github.com/fabiocaccamo/django-admin-interface/blob/master/.github/workflows/test-package.yml 🍻 |
Beta Was this translation helpful? Give feedback.
-
@fabiocaccamo thanks for trying to help. Looks like I need to stop using tox altogether in CI what a PITA. It seems author is not interested in this issue. |
Beta Was this translation helpful? Give feedback.
-
Hi all, I'm sorry for not being able to reply to this thread. I was actually busy with personal stuff lately. I'm actually still not sure if this is a problem with tox-gh-actions. As tox-gh-actions doesn't do anything special which might affect codecov, this may be an issue with how to run tox and codecov on GitHub Actions using multiple jobs. If someone is interested in digging into deeper on how tox + codecov + multiple GitHub Actions jobs works, I really appreciate it. Producing a minimal reproduction case is another way to help this. As this is an OSS without paid support, I cannot guarantee that all questions are answered. Also, as the original author seems to have solved this issue in another approach. I'm also okay to close this issue for now. |
Beta Was this translation helpful? Give feedback.
-
(I meant to click the |
Beta Was this translation helpful? Give feedback.
-
Describe the bug
I switched from Travis CI to GitHub actions for testing my django packages.
I'm using the same tox file, but now the coverage report is not uploaded to codecov anymore, as you can see here there are no more reports uploaded since September 2021.
To Reproduce
GitHub Actions configuration
This is the workflow file, it works pretty well (except the coverage reporting).
tox and tox-gh-actions configuration:
This is my tox file
Link to the GitHub Actions job if a repository is public
https://github.com/fabiocaccamo/django-colorfield/actions/runs/1612327892
Expected behavior
The coverage report should be uploaded to codecov.
Additional context
By running tox locally, actually the coverage is 92%.
Beta Was this translation helpful? Give feedback.
All reactions