Skip to content

Set up github token for coveralls in tom_fink #45

@jchate6

Description

@jchate6
Run poetry run coveralls
  poetry run coveralls
  shell: /usr/bin/bash -e {0}
  env:
    pythonLocation: /opt/hostedtoolcache/Python/[3](https://github.com/TOMToolkit/tom_fink/actions/runs/8481547434/job/23239093385?pr=44#step:6:3).9.19/x64
    LD_LIBRARY_PATH: /opt/hostedtoolcache/Python/3.9.19/x6[4](https://github.com/TOMToolkit/tom_fink/actions/runs/8481547434/job/23239093385?pr=44#step:6:4)/lib
    COVERALLS_REPO_TOKEN: 
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 "/home/runner/.cache/pypoetry/virtualenvs/tom-fink-sHgo[5](https://github.com/TOMToolkit/tom_fink/actions/runs/8481547434/job/23239093385?pr=44#step:6:5)1wW-py3.9/lib/python3.9/site-packages/coveralls/cli.py", line [6](https://github.com/TOMToolkit/tom_fink/actions/runs/8481547434/job/23239093385?pr=44#step:6:6)4, in main
    coverallz = Coveralls(token_required,
  File "/home/runner/.cache/pypoetry/virtualenvs/tom-fink-sHgo51wW-py3.9/lib/python3.9/site-packages/coveralls/api.py", line 49, in __init__
    self.ensure_token()
  File "/home/runner/.cache/pypoetry/virtualenvs/tom-fink-sHgo51wW-py3.[9](https://github.com/TOMToolkit/tom_fink/actions/runs/8481547434/job/23239093385?pr=44#step:6:10)/lib/python3.9/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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    maintenanceNon-user facing updates to clean code and make developer life easier.

    Type

    No type

    Projects

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions