Skip to content
This repository has been archived by the owner on Apr 20, 2023. It is now read-only.

gh-actions: No CI provider detected. #209

Closed
nschloe opened this issue Aug 31, 2019 · 5 comments
Closed

gh-actions: No CI provider detected. #209

nschloe opened this issue Aug 31, 2019 · 5 comments

Comments

@nschloe
Copy link

nschloe commented Aug 31, 2019

E.g., https://github.com/nschloe/tikzplotlib/pull/329/checks?check_run_id=208746870.

@hugovk
Copy link
Contributor

hugovk commented Sep 22, 2019

+1

Our options now:

  1. Save the token at https://codecov.io/gh/org/repo/settings as CODECOV_TOKEN at https://github.com/org/repo/settings/secrets and add it to the workflow YAML:
      env:
        CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

Downside: not available to forks. And coverage is most needed from PRs from forks.

  1. Save the token at https://codecov.io/gh/org/repo/settings as CODECOV_TOKEN at in plaintext in the workflow YAML:
      env:
        CODECOV_TOKEN: 12345678-abcd-1234-abcd-1234567890ab

Downside: shown to everyone. Perhaps not such a big deal, it's only useful for uploading coverage. And even https://codecov.io/gh/org/repo/settings suggests adding it to codecov.yml. Would be cleaner if forks can use their own tokens (or better yet, have it detected automatically :)

@pquentin
Copy link

GitHub Actions does not support this use case yet, see https://community.codecov.io/t/whitelist-github-action-servers-to-upload-without-a-token/491/10 for more details.

@TimoRoth
Copy link

The codecov-bash tools seems to be able to do just fine in Github Actions without needing a token at all.
Would be nice if codecov-python could be adjusted to work the same way.

@nschloe
Copy link
Author

nschloe commented Jun 11, 2020

The bash tool works for me, too. It's submitted it for only one of my matrix builds:

    - name: Submit to codecov
      if: ${{ matrix.python-version == '3.8' }}
      run: bash <(curl -s https://codecov.io/bash)

@thomasrockhu
Copy link
Contributor

This was fixed in 2.1.6 (#275)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants