Skip to content

Commit 59a022a

Browse files
Make coverage dependent on test, only run on main branch
1 parent eb5ba5e commit 59a022a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/github-actions.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,9 @@ jobs:
123123
tox -e ${{ matrix.tox_env }} -v
124124
125125
coveralls:
126-
name: coveralls coverage
126+
name: Upload coverage to Coveralls
127+
if: github.ref == 'refs/heads/main' # Prevent from running on PRs, tags
128+
needs: test
127129
runs-on: ubuntu-latest
128130
steps:
129131
- uses: actions/checkout@v4

0 commit comments

Comments
 (0)