Pillow
Pillow copied to clipboard
Add Codecov token to python-pillow org
Re: https://github.com/python-pillow/Pillow/pull/7776
Looks like Codecov aren't changing tack and we're now getting very low coverage for recent PRs.
For example https://github.com/python-pillow/Pillow/pull/8039 has 24% (of target 52%, which is also too low):
[2024-05-02T03:52:34.094Z] ['error'] There was an error running the uploader: Error uploading to https://codecov.io: Error: There was an error fetching the storage URL during POST: 429 - {'detail': ErrorDetail(string='Rate limit reached. Please upload with the Codecov repository upload token to resolve issue. Expected available in 1708 seconds.', code='throttled')}
https://github.com/python-pillow/Pillow/actions/runs/8918310280/job/24492714641?pr=8039#step:14:216
So let's add a token to the https://github.com/python-pillow org.
@aclark4life Please will you take care of this? I don't have access to the org settings.
- Sign in at https://app.codecov.io
- Go to https://app.codecov.io/gh/python-pillow/Pillow/settings
- Copy the repository upload token
- Go to https://github.com/organizations/python-pillow/settings/secrets/actions
- Click "New org secret"
- Name it
CODECOV_ORG_TOKENand paste in the token, leave "Repo access: Public repos" and "Add secret"
After that, we need to add it to our CI workflows and bump to v4, either like:
- uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_ORG_TOKEN }}
or:
- uses: codecov/codecov-action@v4
with:
...
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_ORG_TOKEN }}
https://github.com/marketplace/actions/codecov shows env:, but https://github.com/codecov/feedback/issues/112 also shows the more compact token:.
@aclark4life Please will you take care of this? I don't have access to the org settings.
Done!
Thank you!
I'll be travelling for the next few days without a laptop, so can continue with this some time next week unless someone else wants a go!
https://github.com/python-pillow/Pillow/pull/8041 upgrades to v4 and adds token: