Commit bc9c94605ce1e30a797138870b75be27b8b4b4e9
1 parent
2c3b3405
Only run on push/PR to master
Showing
1 changed file
with
6 additions
and
2 deletions
.github/workflows/unittests.yml
| 1 | 1 | name: Python package |
| 2 | 2 | |
| 3 | -on: [push] | |
| 3 | +on: | |
| 4 | + push: | |
| 5 | + branches: [master] | |
| 6 | + pull_request: | |
| 7 | + branches: [master] | |
| 4 | 8 | |
| 5 | 9 | jobs: |
| 6 | 10 | build: |
| ... | ... | @@ -19,6 +23,6 @@ jobs: |
| 19 | 23 | - name: Install dependencies |
| 20 | 24 | run: | |
| 21 | 25 | python -m pip install --upgrade pip |
| 22 | - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi | |
| 26 | + pip install -r requirements.txt | |
| 23 | 27 | - name: Run unittests |
| 24 | 28 | run: python -m unittest discover |
| 25 | 29 | \ No newline at end of file | ... | ... |