11name : CI
22
3- on : [push, pull_request]
3+ on : [push, pull_request, workflow_dispatch ]
44
55jobs :
66 Windows :
99 strategy :
1010 fail-fast : false
1111 matrix :
12- python : ['3.7 ', '3.8 ', '3.9 ', '3.10 ']
12+ python : ['3.10 ', '3.11 ', '3.12 ', '3.13', '3.14', '3.14t ']
1313
1414 steps :
1515 - name : Checkout
16- uses : actions/checkout@v2
17- - name : Setup python
18- uses : actions/setup-python@v2
16+ uses : actions/checkout@v6
17+ - name : Setup Python
18+ uses : actions/setup-python@v6
1919 with :
2020 python-version : ${{ matrix.python }}
21+ allow-prereleases : true
2122 cache : pip
22- cache-dependency-path : test-requirements.txt
23+ cache-dependency-path : pyproject.toml
2324 - name : Run tests
2425 run : ./ci.sh
2526 shell : bash
3435 strategy :
3536 fail-fast : false
3637 matrix :
37- python : ['3.7 ', '3.8 ', '3.9 ', '3.10 ', '3.11-dev ']
38+ python : ['3.10 ', '3.11 ', '3.12 ', '3.13 ', '3.14', '3.14t ']
3839 check_formatting : ['0']
3940 extra_name : ['']
4041 include :
@@ -43,19 +44,14 @@ jobs:
4344 extra_name : ' , check formatting'
4445 steps :
4546 - name : Checkout
46- uses : actions/checkout@v2
47- - name : Setup python
48- uses : actions/setup-python@v2
49- if : " !endsWith(matrix.python, '-dev')"
47+ uses : actions/checkout@v6
48+ - name : Setup Python
49+ uses : actions/setup-python@v6
5050 with :
5151 python-version : ${{ matrix.python }}
52+ allow-prereleases : true
5253 cache : pip
53- cache-dependency-path : test-requirements.txt
54- - name : Setup python (dev)
55- uses : deadsnakes/action@v2.0.2
56- if : endsWith(matrix.python, '-dev')
57- with :
58- python-version : ' ${{ matrix.python }}'
54+ cache-dependency-path : pyproject.toml
5955 - name : Run tests
6056 run : ./ci.sh
6157 env :
@@ -70,18 +66,36 @@ jobs:
7066 strategy :
7167 fail-fast : false
7268 matrix :
73- python : ['3.7 ', '3.8 ', '3.9 ', '3.10 ']
69+ python : ['3.10 ', '3.11 ', '3.12 ', '3.13', '3.14', '3.14t ']
7470 steps :
7571 - name : Checkout
76- uses : actions/checkout@v2
77- - name : Setup python
78- uses : actions/setup-python@v2
72+ uses : actions/checkout@v6
73+ - name : Setup Python
74+ uses : actions/setup-python@v6
7975 with :
8076 python-version : ${{ matrix.python }}
77+ allow-prereleases : true
8178 cache : pip
82- cache-dependency-path : test-requirements.txt
79+ cache-dependency-path : pyproject.toml
80+ - name : Set PYTHON_GIL
81+ if : endsWith(matrix.python-version, 't')
82+ run : |
83+ echo "PYTHON_GIL=0" >> "$GITHUB_ENV"
8384 - name : Run tests
8485 run : ./ci.sh
8586 env :
8687 # Should match 'name:' up above
8788 JOB_NAME : ' macOS (${{ matrix.python }})'
89+
90+ alls-green :
91+ if : always()
92+ needs :
93+ - Windows
94+ - Ubuntu
95+ - macOS
96+ runs-on : ubuntu-latest
97+ steps :
98+ - name : Decide whether all jobs succeeded or not
99+ uses : re-actors/alls-green@release/v1
100+ with :
101+ jobs : ${{ toJSON(needs) }}
0 commit comments