-
-
Notifications
You must be signed in to change notification settings - Fork 139
290 lines (271 loc) · 8.63 KB
/
ci.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
name: CI
on: [push, pull_request]
jobs:
build-windows:
name: Python ${{ matrix.python }} on windows-2019 ${{ matrix.arch }}
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
python:
- '3.11'
# - 'pypy-3.7-v7.3.5'
arch:
- 'x86'
- 'x64'
exclude:
- python: 'pypy-3.7-v7.3.5'
arch: x86
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: ${{ matrix.arch }}
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
- name: Run test suite (Windows legacy API)
run: python run.py ci-driver winlegacy
build-windows-old:
name: Python ${{ matrix.python }} on windows-2019 ${{ matrix.arch }}
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
python:
- '2.6'
- '2.7'
- '3.3'
arch:
- 'x86'
- 'x64'
steps:
- uses: actions/checkout@master
- name: Cache Python
id: cache-python
uses: actions/cache@v2
with:
path: ~/AppData/Local/Python${{ matrix.python }}-${{ matrix.arch }}
key: windows-2019-python-${{ matrix.python }}-${{ matrix.arch }}
- name: Install Python ${{ matrix.python }}
run: python run.py python-install ${{ matrix.python }} ${{ matrix.arch }} | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
- name: Run test suite (Windows legacy API)
run: python run.py ci-driver winlegacy
build-mac:
name: Python ${{ matrix.python }} on macos-13
runs-on: macos-13
strategy:
fail-fast: false
matrix:
python:
- '3.11'
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
- name: Run test suite (Mac cffi)
run: python run.py ci-driver cffi
- name: Run test suite (Mac OpenSSL)
run: python run.py ci-driver openssl
- name: Run test suite (Mac OpenSSL/cffi)
run: python run.py ci-driver cffi openssl
build-mac-legacy:
name: Python ${{ matrix.python }} on macos-11
runs-on: macos-11
strategy:
fail-fast: false
matrix:
python:
- '3.7'
- '3.11'
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
- name: Run test suite (Mac cffi)
run: python run.py ci-driver cffi
- name: Run test suite (Mac OpenSSL)
run: python run.py ci-driver openssl
- name: Run test suite (Mac OpenSSL/cffi)
run: python run.py ci-driver cffi openssl
build-mac-old:
name: Python ${{ matrix.python }} on macos-11
runs-on: macos-11
strategy:
fail-fast: false
matrix:
python:
- '2.6'
- '2.7'
- '3.3'
env:
PYTHONIOENCODING: 'utf-8:surrogateescape'
steps:
- uses: actions/checkout@master
- name: Check pyenv
id: check-pyenv
uses: actions/cache@v2
with:
path: ~/.pyenv
key: macos-11-${{ matrix.python }}-pyenv
- name: Install Python ${{ matrix.python }}
run: python run.py pyenv-install ${{ matrix.python }} >> $GITHUB_PATH
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
- name: Run test suite (Mac cffi)
run: python run.py ci-driver cffi
- name: Run test suite (Mac OpenSSL)
run: python run.py ci-driver openssl
- name: Run test suite (Mac OpenSSL/cffi)
run: python run.py ci-driver cffi openssl
build-mac-openssl3:
name: Python ${{ matrix.python }} on macos-11 with OpenSSL 3.0
runs-on: macos-11
strategy:
fail-fast: false
matrix:
python:
- '3.6'
- '3.11'
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install OpenSSL 3.0
run: brew install openssl@3
- name: Install dependencies
run: python run.py deps
- name: Run test suite (Mac OpenSSL 3.0)
run: python run.py ci-driver openssl3
- name: Run test suite (Mac OpenSSL 3.0/cffi)
run: python run.py ci-driver cffi openssl3
build-ubuntu:
name: Python ${{ matrix.python }} on ubuntu-20.04 x64
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python:
- '3.9'
- '3.10'
- '3.11'
- 'pypy-3.7-v7.3.5'
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
architecture: x64
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
build-ubuntu-openssl3-py3:
name: Python 3 on (Docker) ubuntu-22.04 x64
runs-on: ubuntu-latest
container: ubuntu:22.04
steps:
- uses: actions/checkout@master
- name: Install Python and OpenSSL
run: DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends python3 python3-setuptools python-is-python3 openssl curl ca-certificates git
- name: Install dependencies
run: python run.py deps
- name: Run test suite
run: python run.py ci-driver
- name: Run test suite (cffi)
run: python run.py ci-driver cffi
build-ubuntu-openssl3-py2:
name: Python 2 on (Docker) ubuntu-22.04 x64
runs-on: ubuntu-latest
container: ubuntu:22.04
steps:
- uses: actions/checkout@master
- name: Install Python and OpenSSL
run: DEBIAN_FRONTEND=noninteractive apt-get update && apt-get install -y --no-install-recommends python2 python-setuptools openssl curl ca-certificates git
- name: Install dependencies
run: python2 run.py deps
- name: Run test suite
run: python2 run.py ci-driver
- name: Run test suite (cffi)
run: python2 run.py ci-driver cffi
build-ubuntu-old:
name: Python ${{ matrix.python }} on ubuntu-20.04 x64
runs-on: ubuntu-20.04
strategy:
fail-fast: false
matrix:
python:
- '3.6'
- '3.7'
steps:
- uses: actions/checkout@master
- name: Setup deadsnakes/ppa
run: sudo apt-add-repository ppa:deadsnakes/ppa
- name: Update apt
run: sudo apt-get update
- name: Install Python ${{matrix.python}}
run: sudo apt-get install python${{matrix.python}} python${{matrix.python}}-distutils
- name: Install dependencies
run: python${{matrix.python}} run.py deps
- name: Run test suite
run: python${{matrix.python}} run.py ci-driver
build-arm:
name: Python 2.7/3.8 on arm
runs-on: [self-hosted, linux, ARM]
steps:
- uses: actions/checkout@master
- name: Install dependencies (2.7)
run: python2 run.py deps
- name: Run test suite (2.7)
run: python2 run.py ci-driver
- name: Cleanup deps (2.7)
if: always()
run: python2 run.py ci-cleanup
- name: Install dependencies (3.8)
run: python3 run.py deps
- name: Run test suite (3.8)
run: python3 run.py ci-driver
- name: Cleanup deps (3.8)
if: always()
run: python3 run.py ci-cleanup
build-arm64:
name: Python 2.7/3.8 on arm64
runs-on: [self-hosted, linux, ARM64]
steps:
- uses: actions/checkout@master
- name: Install dependencies (2.7)
run: python2 run.py deps
- name: Run test suite (2.7)
run: python2 run.py ci-driver
- name: Cleanup deps (2.7)
if: always()
run: python2 run.py ci-cleanup
- name: Install dependencies (3.8)
run: python3 run.py deps
- name: Run test suite (3.8)
run: python3 run.py ci-driver
- name: Cleanup deps (3.8)
if: always()
run: python3 run.py ci-cleanup