@@ -3,50 +3,45 @@ name: Tests
33on :
44 push :
55 workflow_dispatch :
6-
6+ concurrency :
7+ group : ${{ github.workflow }}-${{ github.ref }}
8+ cancel-in-progress : true
9+ defaults :
10+ run :
11+ shell : bash
712
813jobs :
914 tests :
1015 name : Integration and Unit tests
1116 runs-on : ubuntu-latest
17+ strategy :
18+ fail-fast : true
19+ matrix :
20+ python : [3.7.13, 3.8.13, 3.9.13, 3.10-dev]
1221 steps :
1322 - name : Checkout repository
1423 uses : actions/checkout@v3
1524 with :
1625 token : ${{ secrets.GH_TOKEN }}
17- - name : Setup Python 3.7
18- uses : actions/setup-python@v4
19- with :
20- python-version : ' 3.7.13'
21- - name : Build and run tests for Python 3.7
22- run : |
23- ./scripts/install.sh
24- python scripts/run-tests.py
25- - name : Setup Python 3.8
26- uses : actions/setup-python@v4
27- with :
28- python-version : ' 3.8.13'
29- - name : Build and run tests for Python 3.8
30- run : |
31- ./scripts/install.sh
32- python scripts/run-tests.py
33- - name : Setup Python 3.9
34- uses : actions/setup-python@v4
26+ - name : Checkout actions
27+ uses : actions/checkout@v3
3528 with :
36- python-version : ' 3.9.13'
37- - name : Build and run tests for Python 3.9
38- run : |
39- ./scripts/install.sh
40- python scripts/run-tests.py
41- - name : Setup Python 3.10
29+ repository : pubnub/client-engineering-deployment-tools
30+ ref : v1
31+ token : ${{ secrets.GH_TOKEN }}
32+ path : .github/.release/actions
33+ - name : Setup Python ${{ matrix.python }}
4234 uses : actions/setup-python@v4
4335 with :
44- python-version : ' 3.10-dev '
45- - name : Build and run tests for Python 3.10
36+ python-version : ${{ matrix.python }}
37+ - name : Build and run tests for Python ${{ matrix.python }}
4638 run : |
4739 ./scripts/install.sh
4840 python scripts/run-tests.py
49- acceptance :
41+ - name : Cancel workflow runs for commit on error
42+ if : failure()
43+ uses : ./.github/.release/actions/actions/utils/fast-jobs-failure
44+ acceptance-tests :
5045 name : Acceptance tests
5146 runs-on : ubuntu-latest
5247 steps :
8277 name : acceptance-test-reports
8378 path : ./reports
8479 retention-days : 7
80+ - name : Cancel workflow runs for commit on error
81+ if : failure()
82+ uses : ./.github/.release/actions/actions/utils/fast-jobs-failure
83+ all-tests :
84+ name : Tests
85+ runs-on : ubuntu-latest
86+ needs : [tests, acceptance-tests]
87+ steps :
88+ - name : Tests summary
89+ run : echo -e "\033[38;2;95;215;0m\033[1mAll tests successfully passed"
0 commit comments