Skip to content

Commit

Permalink
ci: updated ci rules to run test only for pushs on main. Other branch…
Browse files Browse the repository at this point in the history
…es only get tested if part of a PR
  • Loading branch information
pabloitu committed Jul 31, 2024
1 parent 325993d commit ec4985c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ name: tests

on:
push:
branches-ignore:
- 'v*'
branches:
- master
pull_request:

jobs:
Expand Down Expand Up @@ -37,7 +37,7 @@ jobs:
- name: Test with pytest
run: |
pytest --cov=./ --cov-config=.coveragerc
pytest --durations=0 --cov=./ --cov-config=.coveragerc
- name: Upload coverage
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10'
Expand Down

0 comments on commit ec4985c

Please sign in to comment.