@@ -2,35 +2,39 @@ name: Tests
22
33on :
44 push :
5- branches : [ feature/* , main, hotfix/* ]
6- pull_request :
7- branches : [ main, release/* ]
5+ branches : [ feature/* , main, hotfix/*, release/* ]
6+ # pull_request:
7+ # branches: [ main, release/* ]
8+
9+ concurrency :
10+ group : ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
11+ cancel-in-progress : true
812
913jobs :
1014 build :
1115 name : pyTest
1216 runs-on : ubuntu-latest
1317
1418 steps :
15- - uses : actions/checkout@v2
16- with :
17- fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
18- - name : Set up Python ${{ matrix.python-version }}
19- uses : actions/setup-python@v2
20- with :
21- python-version : 3.8
22- - name : Install dependencies
23- run : |
24- python -m pip install --upgrade setuptools pip wheel
25- make install
26- make install-dev
27- - name : Make envfile
28- uses : SpicyPizza/create-envfile@v1
29- with :
30- envkey_VAULT_TOKEN : ${{ secrets.VAULT_TOKEN }}
31- envkey_VAULT_ADDR : ${{ secrets.VAULT_ADDR }}
32- - name : Run unit tests
33- run : make test
19+ - uses : actions/checkout@v2
20+ with :
21+ fetch-depth : 0 # Shallow clones should be disabled for a better relevancy of analysis
22+ - name : Set up Python ${{ matrix.python-version }}
23+ uses : actions/setup-python@v2
24+ with :
25+ python-version : 3.8
26+ - name : Install dependencies
27+ run : |
28+ python -m pip install --upgrade setuptools pip wheel
29+ make install
30+ make install-dev
31+ - name : Make envfile
32+ uses : SpicyPizza/create-envfile@v1
33+ with :
34+ envkey_VAULT_TOKEN : ${{ secrets.VAULT_TOKEN }}
35+ envkey_VAULT_ADDR : ${{ secrets.VAULT_ADDR }}
36+ - name : Run unit tests
37+ run : make test
3438# - name: Upload coverage to Codecov
3539# uses: codecov/codecov-action@v1
3640# with:
0 commit comments