Skip to content

Commit

Permalink
add codecov token?
Browse files Browse the repository at this point in the history
  • Loading branch information
lilyminium committed Apr 27, 2024
1 parent c9de494 commit 16324a5
Showing 1 changed file with 8 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -111,13 +111,17 @@ jobs:
if: github.repository == '{{ cookiecutter.github_host_account }}/{{ cookiecutter.repo_name }}' && github.event_name != 'schedule'
uses: codecov/codecov-action@v3
with:
# codecov can be flaky and result in spurious failures
# the below option will not fail the CI if codecov fails
# change to true to fail the CI if codecov fails
fail_ci_if_error: false
file: coverage.xml
name: codecov-{{ '${{ matrix.os }}' }}-py{{ '${{ matrix.python-version }}' }}
verbose: True
# to upload coverage reports, set a secret called CODECOV_TOKEN
# in the repository settings
token: ${{ secrets.CODECOV_TOKEN }}
# To fail the CI if there's an error, keep this set to true
# If repository forks need to run CI, you may need to set this to false
# Forks can't access the CODECOV_TOKEN secret,
# and a failed upload registers as an error
fail_ci_if_error: true


pylint_check:
Expand Down

0 comments on commit 16324a5

Please sign in to comment.