@@ -11,52 +11,52 @@ concurrency:
11
11
cancel-in-progress : true
12
12
13
13
jobs :
14
- # # Windows:
15
- # # name: 'Windows (${{ matrix.python }}, ${{ matrix.arch }}${{ matrix.extra_name }})'
16
- # # timeout-minutes: 20
17
- # # runs-on: 'windows-latest'
18
- # # strategy:
19
- # # fail-fast: false
20
- # # matrix:
21
- # # python: ['3.10', '3.11', '3.12']
22
- # # arch: ['x86', 'x64']
23
- # # continue-on-error: >-
24
- # # ${{
25
- # # (
26
- # # endsWith(matrix.python, '-dev')
27
- # # || endsWith(matrix.python, '-nightly')
28
- # # )
29
- # # && true
30
- # # || false
31
- # # }}
32
- # # steps:
33
- # # - name: Checkout
34
- # # uses: actions/checkout@v4
35
- # # - name: Setup python
36
- # # uses: actions/setup-python@v5
37
- # # with:
38
- # # # This allows the matrix to specify just the major.minor version while still
39
- # # # expanding it to get the latest patch version including alpha releases.
40
- # # # This avoids the need to update for each new alpha, beta, release candidate,
41
- # # # and then finally an actual release version. actions/setup-python doesn't
42
- # # # support this for PyPy presently so we get no help there.
43
- # # #
44
- # # # 'CPython' -> '3.9.0-alpha - 3.9.X'
45
- # # # 'PyPy' -> 'pypy-3.9'
46
- # # python-version: ${{ fromJSON(format('["{0}", "{1}"]', format('{0}.0-alpha - {0}.X', matrix.python), matrix.python))[startsWith(matrix.python, 'pypy')] }}
47
- # # architecture: '${{ matrix.arch }}'
48
- # # cache: pip
49
- # # cache-dependency-path: test-requirements.txt
50
- # # - name: Run tests
51
- # # run: ./ci.sh
52
- # # shell: bash
14
+ Windows :
15
+ name : ' Windows (${{ matrix.python }}, ${{ matrix.arch }}${{ matrix.extra_name }})'
16
+ timeout-minutes : 20
17
+ runs-on : ' windows-latest'
18
+ strategy :
19
+ fail-fast : false
20
+ matrix :
21
+ python : ['3.10', '3.11', '3.12']
22
+ arch : ['x86', 'x64']
23
+ continue-on-error : >-
24
+ ${{
25
+ (
26
+ endsWith(matrix.python, '-dev')
27
+ || endsWith(matrix.python, '-nightly')
28
+ )
29
+ && true
30
+ || false
31
+ }}
32
+ steps :
33
+ - name : Checkout
34
+ uses : actions/checkout@v4
35
+ with :
36
+ persist-credentials : false
37
+ - name : Setup python
38
+ uses : actions/setup-python@v5
39
+ with :
40
+ # This allows the matrix to specify just the major.minor version while still
41
+ # expanding it to get the latest patch version including alpha releases.
42
+ # This avoids the need to update for each new alpha, beta, release candidate,
43
+ # and then finally an actual release version. actions/setup-python doesn't
44
+ # support this for PyPy presently so we get no help there.
45
+ #
46
+ # 'CPython' -> '3.9.0-alpha - 3.9.X'
47
+ # 'PyPy' -> 'pypy-3.9'
48
+ python-version : ${{ fromJSON(format('["{0}", "{1}"]', format('{0}.0-alpha - {0}.X', matrix.python), matrix.python))[startsWith(matrix.python, 'pypy')] }}
49
+ architecture : ' ${{ matrix.arch }}'
50
+ cache : pip
51
+ cache-dependency-path : test-requirements.txt
52
+ - name : Run tests
53
+ run : ./ci.sh
54
+ shell : bash
53
55
54
56
Ubuntu :
55
57
name : ' Ubuntu (${{ matrix.python }}${{ matrix.extra_name }})'
56
58
timeout-minutes : 10
57
59
runs-on : ' ubuntu-latest'
58
- # Only run for PRs or pushes to main
59
- if : github.event_name == 'pull_request' || (github.event_name == 'push' && github.ref == 'refs/heads/main')
60
60
strategy :
61
61
fail-fast : false
62
62
matrix :
@@ -98,49 +98,51 @@ jobs:
98
98
env :
99
99
CHECK_FORMATTING : ' ${{ matrix.check_formatting }}'
100
100
101
- # # macOS:
102
- # # name: 'macOS (${{ matrix.python }})'
103
- # # timeout-minutes: 15
104
- # # runs-on: 'macos-latest'
105
- # # strategy:
106
- # # fail-fast: false
107
- # # matrix:
108
- # # python: ['3.10', '3.11', '3.12']
109
- # # continue-on-error: >-
110
- # # ${{
111
- # # (
112
- # # endsWith(matrix.python, '-dev')
113
- # # || endsWith(matrix.python, '-nightly')
114
- # # )
115
- # # && true
116
- # # || false
117
- # # }}
118
- # # steps:
119
- # # - name: Checkout
120
- # # uses: actions/checkout@v4
121
- # # - name: Setup python
122
- # # uses: actions/setup-python@v5
123
- # # with:
124
- # # python-version: ${{ fromJSON(format('["{0}", "{1}"]', format('{0}.0-alpha - {0}.X', matrix.python), matrix.python))[startsWith(matrix.python, 'pypy')] }}
125
- # # cache: pip
126
- # # cache-dependency-path: test-requirements.txt
127
- # # - name: Run tests
128
- # # run: ./ci.sh
101
+ macOS :
102
+ name : ' macOS (${{ matrix.python }})'
103
+ timeout-minutes : 15
104
+ runs-on : ' macos-latest'
105
+ strategy :
106
+ fail-fast : false
107
+ matrix :
108
+ python : ['3.10', '3.11', '3.12']
109
+ continue-on-error : >-
110
+ ${{
111
+ (
112
+ endsWith(matrix.python, '-dev')
113
+ || endsWith(matrix.python, '-nightly')
114
+ )
115
+ && true
116
+ || false
117
+ }}
118
+ steps :
119
+ - name : Checkout
120
+ uses : actions/checkout@v4
121
+ with :
122
+ persist-credentials : false
123
+ - name : Setup python
124
+ uses : actions/setup-python@v5
125
+ with :
126
+ python-version : ${{ fromJSON(format('["{0}", "{1}"]', format('{0}.0-alpha - {0}.X', matrix.python), matrix.python))[startsWith(matrix.python, 'pypy')] }}
127
+ cache : pip
128
+ cache-dependency-path : test-requirements.txt
129
+ - name : Run tests
130
+ run : ./ci.sh
131
+
132
+ # https://github.com/marketplace/actions/alls-green#why
133
+ check : # This job does nothing and is only used for the branch protection
134
+
135
+ if : always()
136
+
137
+ needs :
138
+ - Windows
139
+ - Ubuntu
140
+ - macOS
129
141
130
- # # # https://github.com/marketplace/actions/alls-green#why
131
- # # check: # This job does nothing and is only used for the branch protection
132
- # #
133
- # # if: always()
134
- # #
135
- # # needs:
136
- # # - Windows
137
- # # - Ubuntu
138
- # # - macOS
139
- # #
140
- # # runs-on: ubuntu-latest
141
- # #
142
- # # steps:
143
- # # - name: Decide whether the needed jobs succeeded or failed
144
- # # uses: re-actors/alls-green@release/v1
145
- # # with:
146
- # # jobs: ${{ toJSON(needs) }}
142
+ runs-on : ubuntu-latest
143
+
144
+ steps :
145
+ - name : Decide whether the needed jobs succeeded or failed
146
+ uses : re-actors/alls-green@release/v1
147
+ with :
148
+ jobs : ${{ toJSON(needs) }}
0 commit comments