Skip to content

Commit

Permalink
Split PyTest and Coveralls into separate steps & conditionally run Co…
Browse files Browse the repository at this point in the history
…veralls. (#44)

* The Coveralls GitHub Action now supports separate build steps.

* Conditionally run the Coveralls step if the `GITHUB_TOKEN` is set.
  • Loading branch information
willgraf committed Jan 30, 2021
1 parent 3694b2d commit afe13fe
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/tests.yaml
Expand Up @@ -40,13 +40,17 @@ jobs:
pip install .[tests]
pip install coveralls
- name: Run PyTest and Coveralls
- name: PyTest
run: |
pytest --cov deepcell_tracking --pep8
- name: Coveralls
if: ${{ github.token != '' }}
env:
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
COVERALLS_FLAG_NAME: python-${{ matrix.os }}-${{ matrix.python-version }}
COVERALLS_PARALLEL: true
run: |
pytest --cov deepcell_tracking --pep8
coveralls
coveralls:
Expand Down

0 comments on commit afe13fe

Please sign in to comment.