Skip to content
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

Test coverage uploads are failing #834

Closed
gaborcsardi opened this issue Apr 28, 2024 · 3 comments
Closed

Test coverage uploads are failing #834

gaborcsardi opened this issue Apr 28, 2024 · 3 comments
Labels
bug an unexpected problem or unintended behavior

Comments

@gaborcsardi
Copy link
Member

Nowadays many (all?) test coverage uploads to codecov fail if you don't have a CODECOV_TOKEN env var set.

Our current coverage upload method does not work with a global codecov token, until we fix this you'll need to get one for each repository, add it as a repository secret called CODECOV_TOKEN and then modify your test coverage workflow to set the env var to the secret:

  test-coverage:
    runs-on: ubuntu-latest
    env:
      GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
      CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Or you can also add the env var to the step that cals covr::codecov().

@gaborcsardi
Copy link
Member Author

a10b63e will allow using a global token. Release soon.

@gaborcsardi
Copy link
Member Author

This is now fixed with the new @v2.9.0 release, which is also the new @v2. It is possible that you need to update your test-coverage.yaml workflow, and you probably need to add a repo or global Codecov token as the CODECOV_TOKEN secret.

Copy link

This issue has been automatically locked. If you believe you have found a related problem, please file a new issue and include a link to this issue

@github-actions github-actions bot locked as resolved and limited conversation to collaborators May 24, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug an unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

1 participant