forked from grantjenks/python-sortedcontainers
-
Notifications
You must be signed in to change notification settings - Fork 0
255 lines (209 loc) · 7.95 KB
/
Copy pathintegration.yml
File metadata and controls
255 lines (209 loc) · 7.95 KB
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
# TODO: https://github.com/joerick/cibuildwheel
name: integration
on: push
jobs:
# checks:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - uses: actions/setup-python@v2
# with:
# python-version: 3.8
# - name: Run Pylint
# run: |
# pip install tox
# tox -e pylint
# tests:
# needs: checks
# runs-on: ${{ matrix.os }}
# strategy:
# max-parallel: 8
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest, ubuntu-16.04]
# python-version: [3.5, 3.6, 3.7, 3.8, pypy3]
# # exclude:
# # # Excluded due to faulthandler bug:
# # # https://github.com/grantjenks/python-runstats/runs/301718278#step:5:13
# # - os: windows-latest
# # python-version: pypy3
# steps:
# - name: Download Build Tools for Visual Studio 2019
# if: matrix.os == 'windows-latest'
# run: Invoke-WebRequest -Uri https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile vs_buildtools.exe
# - name: Run vs_buildtools.exe install
# if: matrix.os == 'windows-latest'
# run: ./vs_buildtools.exe --quiet --wait --norestart --nocache --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.140 --includeRecommended.
# - name: Set up Python ${{ matrix.python-version }} x64
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.python-version }}
# architecture: x64
# - uses: actions/checkout@v2
# - name: Test with tox
# run: |
# pip install tox
# tox -e py
# build-linux:
# needs: tests
# strategy:
# matrix:
# config:
# - {container: manylinux2014_x86_64, python: cp35-cp35m, toxenv: py35-cython, tag: cy35}
# - {container: manylinux2014_x86_64, python: cp36-cp36m, toxenv: py36-cython, tag: cy36}
# - {container: manylinux2014_x86_64, python: cp37-cp37m, toxenv: py37-cython, tag: cy37}
# - {container: manylinux2014_x86_64, python: cp38-cp38, toxenv: py38-cython, tag: cy38}
# runs-on: ubuntu-latest
# container: quay.io/pypa/${{ matrix.config.container }}
# steps:
# - uses: actions/checkout@v2
# - name: Install Python package dependencies
# run: /opt/python/${{ matrix.config.python }}/bin/python -m pip install tox tox-wheel
# - name: Build binary wheel
# run: /opt/python/${{ matrix.config.python }}/bin/python -m tox -e ${{ matrix.config.toxenv }} --wheel
# - name: Apply auditwheel
# run: auditwheel repair -w .tox/dist .tox/dist/*
# - name: Remove linux wheel
# run: rm .tox/dist/*-linux_x86_64.whl
# - name: Archive dist artifacts
# uses: actions/upload-artifact@v2
# with:
# name: dist-linux-${{ matrix.config.tag }}
# path: .tox/dist
# TODO: https://github.com/matthew-brett/delocate
# build-macos:
# # needs: tests
# runs-on: macos-latest
# strategy:
# max-parallel: 4
# matrix:
# config:
# - {python-version: 3.5, toxenv: py35-cython}
# - {python-version: 3.6, toxenv: py36-cython}
# - {python-version: 3.7, toxenv: py37-cython}
# - {python-version: 3.8, toxenv: py38-cython}
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python ${{ matrix.config.python-version }} x64
# uses: actions/setup-python@v2
# with:
# python-version: ${{ matrix.config.python-version }}
# architecture: x64
# - name: Install Python package dependencies
# run: pip install tox tox-wheel
# - name: Build binary wheel
# run: python -m tox -e ${{ matrix.config.toxenv }} --wheel
# - name: Archive dist artifacts
# uses: actions/upload-artifact@v2
# with:
# name: dist-macos-${{ matrix.config.python-version }}
# path: .tox/dist
build-windows:
# needs: tests
runs-on: windows-latest
strategy:
max-parallel: 3
matrix:
config:
- {py: 3.5, arch: x86, toxenv: py35-cython, tag: cy35-x86}
- {py: 3.5, arch: x64, toxenv: py35-cython, tag: cy35-x64}
- {py: 3.6, arch: x86, toxenv: py36-cython, tag: cy36-x86}
- {py: 3.6, arch: x64, toxenv: py36-cython, tag: cy36-x64}
- {py: 3.7, arch: x86, toxenv: py37-cython, tag: cy37-x86}
- {py: 3.7, arch: x64, toxenv: py37-cython, tag: cy37-x64}
- {py: 3.8, arch: x86, toxenv: py38-cython, tag: cy38-x86}
- {py: 3.8, arch: x64, toxenv: py38-cython, tag: cy38-x64}
steps:
- uses: actions/checkout@v2
- name: Download Build Tools for Visual Studio 2019
run: Invoke-WebRequest -Uri https://aka.ms/vs/16/release/vs_buildtools.exe -OutFile vs_buildtools.exe
- name: Run vs_buildtools.exe install
run: ./vs_buildtools.exe --quiet --wait --norestart --nocache --add Microsoft.VisualStudio.Component.VC.Tools.x86.x64 --add Microsoft.VisualStudio.Component.VC.v141.x86.x64 --add Microsoft.VisualStudio.Component.VC.140 --includeRecommended
- name: Set up Python ${{ matrix.config.py }} ${{ matrix.config.arch }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.config.py }}
architecture: ${{ matrix.config.arch }}
- name: Install Python package dependencies
run: pip install tox tox-wheel
- name: Build binary wheel
run: tox -e ${{ matrix.config.toxenv }} --wheel
- name: Archive dist artifacts
uses: actions/upload-artifact@v2
with:
name: dist-windows-${{ matrix.config.tag }}
path: .tox/dist
# upload:
# if: startsWith(github.ref, 'version-')
# needs: [build-linux-cp35, build-linux-cp36, build-linux-cp37, build-linux-cp38, build-macos, build-windows]
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v2
# - name: Set up Python
# uses: actions/setup-python@v2
# with:
# python-version: 3.8
# - name: Create source dist
# run: python setup.py sdist
# - name: Stage linux 3.5
# uses: actions/download-artifact@v2
# with:
# name: dist-linux-3.5
# - run: mv -v dist-linux-3.5/* dist/
# - name: Stage linux 3.6
# uses: actions/download-artifact@v2
# with:
# name: dist-linux-3.6
# - run: mv -v dist-linux-3.6/* dist/
# - name: Stage linux 3.7
# uses: actions/download-artifact@v2
# with:
# name: dist-linux-3.7
# - run: mv -v dist-linux-3.7/* dist/
# - name: Stage linux 3.8
# uses: actions/download-artifact@v2
# with:
# name: dist-linux-3.8
# - run: mv -v dist-linux-3.8/* dist/
# - name: Stage macos 3.5
# uses: actions/download-artifact@v2
# with:
# name: dist-macos-3.5
# - run: mv -v dist-macos-3.5/* dist/
# - name: Stage macos 3.6
# uses: actions/download-artifact@v2
# with:
# name: dist-macos-3.6
# - run: mv -v dist-macos-3.6/* dist/
# - name: Stage macos 3.7
# uses: actions/download-artifact@v2
# with:
# name: dist-macos-3.7
# - run: mv -v dist-macos-3.7/* dist/
# - name: Stage macos 3.8
# uses: actions/download-artifact@v2
# with:
# name: dist-macos-3.8
# - run: mv -v dist-macos-3.8/* dist/
# - name: Stage windows 3.6
# uses: actions/download-artifact@v2
# with:
# name: dist-windows-3.6
# - run: mv -v dist-windows-3.6/* dist/
# - name: Stage windows 3.7
# uses: actions/download-artifact@v2
# with:
# name: dist-windows-3.7
# - run: mv -v dist-windows-3.7/* dist/
# - name: Stage windows 3.8
# uses: actions/download-artifact@v2
# with:
# name: dist-windows-3.8
# - run: mv -v dist-windows-3.8/* dist/
# - name: Upload with twine
# env:
# TWINE_USERNAME: ${{ secrets.TWINE_USERNAME }}
# TWINE_PASSWORD: ${{ secrets.TWINE_PASSWORD }}
# run: |
# ls -l dist/*
# pip install twine
# twine upload dist/*