-
-
Notifications
You must be signed in to change notification settings - Fork 188
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
Could not submit coverage: 422 Client Error despite defining COVERALLS_REPO_TOKEN on GHA #240
Comments
The payload sent to coveralls.io from a Github Actions job must contain |
I worked around the issue like this: linux-system-roles/tox-lsr#7 |
Good spot on https://github.com/AndreMiras/coveralls-python-action/blob/develop/src/entrypoint.py#L57-L65 I'm just using @AndreMiras's action for now as it's marginally less painful than hacking a fix |
I tried using that. It does talk to coveralls.io correctly, but it does not read the paths from the .coverage file correctly. It seems the paths are absolute paths in the file e.g. /path/to/src/pkgname/file.py - but that action runs in a container which does a volume map to a different path e.g. Perhaps this is a side effect of how I run pytest-cov? Maybe there is a way to generate relative paths in the .coverage file? |
I think you mean https://coverage.readthedocs.io/en/coverage-5.0.4/config.html#paths |
That's better. I can see that my .coverage is being generated with relative paths: https://github.com/linux-system-roles/tox-lsr/pull/7/checks?check_run_id=1525189232
and the action is able to send a report to coveralls.io. However, the report is wrong: https://coveralls.io/jobs/71961347 - it says 0% coverage, but the output of the run says otherwise:
So there is still something wrong, and running coveralls-python-action with |
maybe you need to run |
So instead of pytest-cov creating a |
(I meant |
so coveralls-python-action needs the file
otherwise I guess it doesn't know that the files in I suppose most ordinary folks would already have that, but I happen to be in the extraordinary position of having to support py26 for a few customers, and |
@casperdcl I have set |
Despite
$COVERALLS_REPO_TOKEN
being correctly defined and passed in (viatox
), getting a 422 error on GitHub Actions https://github.com/casperdcl/git-fame/runs/1383075434?check_suite_focus=true#step:5:62 (casperdcl/git-fame@20b3f10)Note that
codecov
by comparison (using$CODECOV_TOKEN
) works fine.The text was updated successfully, but these errors were encountered: