Skip to content

Commit

Permalink
Add GITHUB_TOKEN to coverage upload env (#83)
Browse files Browse the repository at this point in the history
* Add GITHUB_TOKEN to coverage upload env

* Move finish outside the parallel build
  • Loading branch information
cjrh committed Jul 5, 2023
1 parent bc45198 commit 0ec0b4c
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/pythonapp.yml
Expand Up @@ -48,15 +48,21 @@ jobs:
id: extract_branch
- name: Upload coverage
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_PARALLEL: "true"
if: matrix.os == 'ubuntu-latest'
run: |
coveralls
- name: Finish parallel coverage
coveralls --service=github
coveralls:
name: Indicate completion to coveralls.io
needs: build
runs-on: ubuntu-latest
steps:
- name: Finished
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
if: matrix.os == 'ubuntu-latest'
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
coveralls --finish
pip3 install --upgrade coveralls
coveralls --service=github --finish

0 comments on commit 0ec0b4c

Please sign in to comment.