15
15
branches : [ "master" ]
16
16
17
17
jobs :
18
- test :
18
+ unit :
19
+ name : Unit tests
19
20
runs-on : ubuntu-latest
20
21
strategy :
21
- fail-fast : false
22
+ fail-fast : true
22
23
matrix :
23
24
python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
24
25
steps :
@@ -33,11 +34,74 @@ jobs:
33
34
run : make lint
34
35
- name : test
35
36
run : make test
36
- - name : test update
37
+ instance-changes :
38
+ name : Instance tests (only changes)
39
+ runs-on : ubuntu-latest
40
+ needs : [unit]
41
+ strategy :
42
+ fail-fast : false
43
+ matrix :
44
+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
45
+ steps :
46
+ - uses : actions/checkout@v4
47
+ with :
48
+ fetch-depth : 0
49
+ - name : Set up Python ${{ matrix.python-version }}
50
+ uses : actions/setup-python@v5
51
+ with :
52
+ python-version : ${{ matrix.python-version }}
53
+ - name : Install dependencies
54
+ run : make install
55
+ - name : Test instance changes on this branch
56
+ run : make test-changes T_FLAGS+='-n 10 --json-report --json-report-file=report/report.json'
57
+ # Only run summary once
58
+ - name : all summary
59
+ if : (success() || failure()) && matrix.python-version == '3.8'
37
60
run : |
38
- make report T_FLAGS+='-n 10' || true
61
+ make github-summary >> $GITHUB_STEP_SUMMARY
62
+ instance-tests :
63
+ name : Instance tests (all)
64
+ runs-on : ubuntu-latest
65
+ needs : [unit]
66
+ strategy :
67
+ fail-fast : false
68
+ matrix :
69
+ python-version : ["3.8", "3.9", "3.10", "3.11", "3.12"]
70
+ steps :
71
+ - uses : actions/checkout@v4
72
+ - name : Set up Python ${{ matrix.python-version }}
73
+ uses : actions/setup-python@v5
74
+ with :
75
+ python-version : ${{ matrix.python-version }}
76
+ - name : Install dependencies
77
+ run : make install
78
+ - name : Test all instances (ok to fail)
79
+ run : |
80
+ make report! T_FLAGS+='-n 10' || true
39
81
# Only run summary once
40
82
- name : summary
41
83
if : (success() || failure()) && matrix.python-version == '3.8'
42
84
run : |
43
85
make github-summary >> $GITHUB_STEP_SUMMARY
86
+
87
+ python2 :
88
+ name : test (2.7)
89
+ runs-on : ubuntu-latest
90
+ steps :
91
+ - uses : actions/checkout@v3
92
+ - name : Set up Python 2.7
93
+ uses : MatteoH2O1999/setup-python@v4
94
+ with :
95
+ python-version : ' 2.7'
96
+ allow-build : info
97
+ cache-build : true
98
+ - name : Install dependencies
99
+ run : make install
100
+ - name : lint
101
+ run : make lint
102
+ - name : test
103
+ run : make test
104
+ - name : test update
105
+ run : |
106
+ # allowed to fail for test runs
107
+ make test-update T_FLAGS+='-n 10' || true
0 commit comments