Skip to content

Commit

Permalink
GHA: require codecov token explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
isinyaaa committed Jun 26, 2024
1 parent 751887b commit 656ef0d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
name: Python workflows
on:
workflow_call:
secrets:
codecov_token:
required: true
push:
branches:
- "main"
Expand Down Expand Up @@ -63,11 +67,10 @@ jobs:
- name: Upload coverage report
uses: codecov/[email protected]
if: always() && matrix.session == 'tests'
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
files: coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload documentation
if: matrix.session == 'docs-build'
uses: actions/upload-artifact@v4
Expand Down

0 comments on commit 656ef0d

Please sign in to comment.