Commit bc9c94605ce1e30a797138870b75be27b8b4b4e9

Authored by Christian Herdtweck
1 parent 2c3b3405

Only run on push/PR to master

.github/workflows/unittests.yml
1 name: Python package 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 jobs: 9 jobs:
6 build: 10 build:
@@ -19,6 +23,6 @@ jobs: @@ -19,6 +23,6 @@ jobs:
19 - name: Install dependencies 23 - name: Install dependencies
20 run: | 24 run: |
21 python -m pip install --upgrade pip 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 - name: Run unittests 27 - name: Run unittests
24 run: python -m unittest discover 28 run: python -m unittest discover
25 \ No newline at end of file 29 \ No newline at end of file