-
Notifications
You must be signed in to change notification settings - Fork 15
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
Set CODECOV_TOKEN for repo #62
Comments
In theory, the token should not really be required - at least for pypdf we are currently using the token-less approach. We only tend to occasionally hit the rate limit for tokenless uploads, but it general it seems to be running without issues. |
Yeah, you either need to stick with
It's not though. For PRs/pushes within the repo, a token is being used to upload the results: PRs from forks of |
Thanks for linking to that threat.
Over there it was mentioned that V3 is no longer working. Maybe the easiest way to handle this it use a token on the pypdf organization level. |
The v3 version still "works" in the sense that assuming you don't hit a rate limit, it will still upload the coverage statistics. It's just that you're very likely to hit the rate limit so no coverage will get uploaded, rendering it somewhat useless.
Agreed. I think though getting the token is limited to either @Lucas-C or @MartinThoma (depending on who setup Codecov for the org first I think?). |
It think is is safer to use the latest GitHub Actions workflow: I checked on https://app.codecov.io/gh/py-pdf and it seems to me that coverage uploads already work fine: Latest upload log: https://github.com/py-pdf/pypdf_table_extraction/actions/runs/10562010294/job/29259475281 |
That upload worked as it was from a fork in a PR, so it allows tokenless upload (though still has a potential rate limit and so may fail randomly, but usually doesn't matter as it's for a PR). The "Last Updated" thing on codecov then updates for PRs as well as uploads from the repo, so it's a bit misleading. On the main page for which was 38eb7d4 from 2 weeks ago. The latest upload log for |
That is still the latest commit. The source code on codecov still shows an old version. On one of the latest merge actions there still is this warning. Who has the powers here to setup the token? |
While #29 was closed with updating the
codecov/codecov-action
, it appears the repo was not yet setup with aCODECOV_TOKEN
. See https://github.com/py-pdf/pypdf_table_extraction/actions/runs/10488522333/job/29051313824 as an example (latest run of the coverage workflow formain
), where the upload step outputs:Further, if expand the first line of that step of the job:
where we can see that no value was passed in for
CODECOV_TOKEN
.As such, I think someone still needs to actually set
${{ secrets.CODECOV_TOKEN }}
to a value for this to work. See https://docs.codecov.com/docs/adding-the-codecov-token for instructions on how to do this.The text was updated successfully, but these errors were encountered: