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

Coveralls: Pass $GITHUB_TOKEN to get coveralls.io working again #557

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented Dec 11, 2023

Fix these errors...

Run coveralls
Running on Github Actions but GITHUB_TOKEN is not set. Add "env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}" to your step config.
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/coveralls/cli.py", line 64, in main
    coverallz = Coveralls(token_required,
                ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/coveralls/api.py", line 49, in __init__
    self.ensure_token()
  File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/coveralls/api.py", line 56, in ensure_token
    raise CoverallsException(
coveralls.exception.CoverallsException: Running on Github Actions but GITHUB_TOKEN is not set. Add "env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}" to your step config.

--> https://coveralls.io/github/Kozea/pygal

Scroll down to see that these are the first coveralls updates for this project since 2017.

Fix these errors...
```
Run coveralls
Running on Github Actions but GITHUB_TOKEN is not set. Add "env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}" to your step config.
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/coveralls/cli.py", line 64, in main
    coverallz = Coveralls(token_required,
                ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/coveralls/api.py", line 49, in __init__
    self.ensure_token()
  File "/opt/hostedtoolcache/Python/3.12.0/x64/lib/python3.12/site-packages/coveralls/api.py", line 56, in ensure_token
    raise CoverallsException(
coveralls.exception.CoverallsException: Running on Github Actions but GITHUB_TOKEN is not set. Add "env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}" to your step config.
```
* https://coveralls-python.readthedocs.io/en/latest/usage/configuration.html#github-actions-support
@cclauss cclauss marked this pull request as ready for review December 11, 2023 14:46
@cclauss cclauss changed the title Coveralls: Pass $GITHUB_TOKEN Coveralls: Pass $GITHUB_TOKEN to get coveralls.io working again Dec 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant