-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathazure-pipelines.yml
183 lines (178 loc) · 5.79 KB
/
azure-pipelines.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
trigger:
- master
variables:
CODECOV_TOKEN: 504b0637-b4c1-4991-bc79-7a29aee41b44
CIBW_BUILD: cp36-* cp37-* cp38-*
CIBW_BEFORE_BUILD: python -m pip install --upgrade pip
jobs:
- job: Linux_Test_py36
pool: {vmImage: 'ubuntu-latest'}
steps:
- task: UsePythonVersion@0
- bash: |
python -m pip install --upgrade pip
python -m pip install .[dev] codecov
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- bash: |
tox -e py36
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for Linux Python 3.6'
failTaskOnFailedTests: true
- job: Linux_Test_py37
pool: {vmImage: 'ubuntu-latest'}
steps:
- task: UsePythonVersion@0
- bash: |
python -m pip install --upgrade pip
python -m pip install .[dev] codecov
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- bash: |
tox -e py37
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for Linux Python 3.7'
failTaskOnFailedTests: true
- job: Linux_Test_py38
pool: {vmImage: 'ubuntu-latest'}
steps:
- task: UsePythonVersion@0
- bash: |
python -m pip install --upgrade pip
python -m pip install .[dev] codecov
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
- bash: |
tox -e py38
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for Linux Python 3.8'
failTaskOnFailedTests: true
- job: MacOS_Test_py36
pool: {vmImage: 'macos-latest'}
steps:
- task: UsePythonVersion@0
- bash: |
python -m pip install --upgrade pip
python -m pip install .[dev] codecov
- task: UsePythonVersion@0
inputs:
versionSpec: '3.6'
- bash: |
tox -e py36
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for MacOS Python 3.6'
failTaskOnFailedTests: true
- job: MacOS_Test_py37
pool: {vmImage: 'macos-latest'}
steps:
- task: UsePythonVersion@0
- bash: |
python -m pip install --upgrade pip
python -m pip install .[dev] codecov
- task: UsePythonVersion@0
inputs:
versionSpec: '3.7'
- bash: |
tox -e py37
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for MacOS Python 3.7'
failTaskOnFailedTests: true
- job: MacOS_Test_py38
pool: {vmImage: 'macos-latest'}
steps:
- task: UsePythonVersion@0
- bash: |
python -m pip install --upgrade pip
python -m pip install .[dev] codecov
- task: UsePythonVersion@0
inputs:
versionSpec: '3.8'
- bash: |
tox -e py38
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for MacOS Python 3.8'
failTaskOnFailedTests: true
- job: Windows_Test_py37
pool: {vmImage: 'windows-latest'}
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x86}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
- bash: |
python -m pip install --upgrade pip
python -m pip install .[dev] codecov
tox -e py37
codecov
- task: PublishTestResults@2
condition: succeededOrFailed()
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: 'Publish test results for Windows Python 3.8'
failTaskOnFailedTests: true
- job: Linux_Build
pool: {vmImage: 'ubuntu-latest'}
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6'}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7'}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8'}}
- bash: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel numpy
cibuildwheel --output-dir wheelhouse .
python setup.py sdist
cp dist/*.gz wheelhouse/.
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}
- job: MacOS_Build
pool: {vmImage: 'macos-latest'}
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6'}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7'}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8'}}
- bash: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel numpy
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}
- job: Windows_Build
pool: {vmImage: 'windows-latest'}
steps:
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x86}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.6', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x86}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.7', architecture: x64}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x86}}
- {task: UsePythonVersion@0, inputs: {versionSpec: '3.8', architecture: x64}}
- bash: |
python -m pip install --upgrade pip
python -m pip install cibuildwheel numpy
cibuildwheel --output-dir wheelhouse .
- task: PublishBuildArtifacts@1
inputs: {pathtoPublish: 'wheelhouse'}