Skip to content

Commit

Permalink
Only run Coveralls if COVERALLS_REPO_TOKEN is set. (#46)
Browse files Browse the repository at this point in the history
* Only run Coveralls if COVERALLS_REPO_TOKEN is set.

* Also only Finish Coveralls if COVERALLS_REPO_TOKEN is set.
  • Loading branch information
willgraf committed Jan 30, 2021
1 parent afe13fe commit 9c29808
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:
pytest --cov deepcell_tracking --pep8
- name: Coveralls
if: ${{ github.token != '' }}
if: env.COVERALLS_REPO_TOKEN != null
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_FLAG_NAME: python-${{ matrix.os }}-${{ matrix.python-version }}
Expand All @@ -60,6 +60,9 @@ jobs:
steps:
- name: Coveralls Finished
uses: coverallsapp/github-action@master
if: env.COVERALLS_REPO_TOKEN != null
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true

0 comments on commit 9c29808

Please sign in to comment.