Skip to content

Commit

Permalink
Merge pull request #7720 from Tribler/fix/7719
Browse files Browse the repository at this point in the history
Add CODECOV_TOKEN to secrets and update workflows
  • Loading branch information
drew2a committed Nov 24, 2023
2 parents 0a932db + 7c7c0c6 commit 2589aad
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/!PR.yml
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ jobs:
if: ${{ needs.changes.outputs.src == 'true' }}
uses: ./.github/workflows/coverage.yml
secrets:
CODACY_PROJECT_TOKEN: ${{secrets.CODACY_PROJECT_TOKEN}}
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
with:
python-version: ${{needs.env.outputs.python-version}}
ref: ${{needs.env.outputs.source-ref}}
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/!main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
python-version: 3.8
secrets:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

pytest:
uses: ./.github/workflows/pytest.yml
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ on:
CODACY_PROJECT_TOKEN:
required: false

CODECOV_TOKEN:
required: true

permissions:
contents: read

Expand Down Expand Up @@ -54,6 +57,7 @@ jobs:
- name: Upload to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml

- name: Upload to Codacy
Expand Down

0 comments on commit 2589aad

Please sign in to comment.