Actions: Fix condition
This commit is contained in:
parent
5c4989f26c
commit
5af2c6e69a
4
.github/workflows/test.yml
vendored
4
.github/workflows/test.yml
vendored
@ -27,7 +27,7 @@ jobs:
|
|||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: python setup.py test
|
run: python setup.py test
|
||||||
- name: Upload coverage to Coveralls
|
- name: Upload coverage to Coveralls
|
||||||
if: secrets.COVERALLS_REPO_TOKEN
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
env:
|
env:
|
||||||
COVERALLS_PARALLEL: true
|
COVERALLS_PARALLEL: true
|
||||||
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
||||||
@ -37,7 +37,7 @@ jobs:
|
|||||||
|
|
||||||
coveralls-finished:
|
coveralls-finished:
|
||||||
needs: test
|
needs: test
|
||||||
if: secrets.COVERALLS_REPO_TOKEN
|
if: github.event_name == 'push' && github.ref == 'refs/heads/master'
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: Set up Python
|
- name: Set up Python
|
||||||
|
Loading…
Reference in New Issue
Block a user