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

Fix coveralls integration / tox.ini: Take away GITHUB_ACTIONS from coveralls #101

Merged
merged 1 commit into from Feb 7, 2022

Conversation

hartwork
Copy link
Collaborator

@hartwork hartwork commented Feb 7, 2022

.. so that it stops complaining about missing variable GITHUB_TOKEN ..

Running on Github Actions but GITHUB_TOKEN is not set.
Add "env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}" to
your step config.

(which may have write access) and that we stopped sharing with coveralls in PR #97.

The related code checks for presence of variable GITHUB_ACTIONS so we we take that variable from coveralls-python.

Rather than excluding variable GITHUB_ACTIONS, we include all other GITHUB_* variables used by coveralls-python. The list was derive like this:

$ git clone --depth 1 https://github.com/TheKevJames/coveralls-python
$ cd coveralls-python/
$ git grep -oh "GITHUB_[^ ':\`*]\+" | sort -u
GITHUB_ACTIONS
GITHUB_HEAD_REF
GITHUB_REF
GITHUB_REPOSITORY
GITHUB_RUN_ID
GITHUB_RUN_NUMBER
GITHUB_SHA
GITHUB_TOKEN

PS: In reaction to https://github.com/asyncee/django-easy-select2/runs/5087340885?check_suite_focus=true#step:5:154

CC @asyncee (I'll dare to merge now)

.. so that it stops complaining about missing
variable GITHUB_TOKEN ..

> Running on Github Actions but GITHUB_TOKEN is not set.
> Add "env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}" to
> your step config.

(which may have write access) and that we stopped
sharing with coveralls in PR #97.

The related code checks for presence of variable
GITHUB_ACTIONS so we we take that variable
from coveralls-python.

Rather than excluding variable GITHUB_ACTIONS,
we include all other GITHUB_* variables used by
coveralls-python.  The list was derived list this:

$ git clone --depth 1 https://github.com/TheKevJames/coveralls-python
$ cd coveralls-python/
$ git grep -oh "GITHUB_[^ ':\`*]\+" | sort -u
GITHUB_ACTIONS
GITHUB_HEAD_REF
GITHUB_REF
GITHUB_REPOSITORY
GITHUB_RUN_ID
GITHUB_RUN_NUMBER
GITHUB_SHA
GITHUB_TOKEN
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant