-
Notifications
You must be signed in to change notification settings - Fork 30
/
.azure_pipeline.yml
214 lines (205 loc) · 6.7 KB
/
.azure_pipeline.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
# Adapted from https://github.com/pandas-dev/pandas/blob/master/azure-pipelines.yml
# Global variables for all jobs
variables:
VIRTUALENV: 'testvenv'
JUNITXML: 'test-data.xml'
CODECOV_TOKEN: 'cee0e505-c12e-4139-aa43-621fb16a2347'
schedules:
- cron: "0 1 * * *" # 1am UTC
displayName: Run nightly build
branches:
include:
- master
always: true
stages:
- stage:
jobs:
- job: 'linting'
displayName: Linting
pool:
vmImage: ubuntu-latest
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.12'
- script: |
pip install black
displayName: install black
- script: |
black --check --diff .
displayName: Run black
- template: continuous_integration/windows.yml
parameters:
name: Windows
vmImage: windows-latest
matrix:
pylatest_conda_forge_mkl:
PYTHON_VERSION: '*'
PACKAGER: 'conda-forge'
BLAS: 'mkl'
py310_conda_forge_openblas:
PYTHON_VERSION: '3.10'
PACKAGER: 'conda-forge'
BLAS: 'openblas'
py39_conda:
PYTHON_VERSION: '3.9'
PACKAGER: 'conda'
py38_pip:
PYTHON_VERSION: '3.8'
PACKAGER: 'pip'
- template: continuous_integration/posix.yml
parameters:
name: Linux
vmImage: ubuntu-20.04
matrix:
# Linux environment with development versions of numpy and scipy
pylatest_pip_dev:
PACKAGER: 'pip-dev'
PYTHON_VERSION: '*'
CC_OUTER_LOOP: 'gcc'
CC_INNER_LOOP: 'gcc'
# Linux environment to test that packages that comes with Ubuntu 20.04
# are correctly handled.
py38_ubuntu_atlas_gcc_gcc:
PACKAGER: 'ubuntu'
APT_BLAS: 'libatlas3-base libatlas-base-dev'
PYTHON_VERSION: '3.8'
CC_OUTER_LOOP: 'gcc'
CC_INNER_LOOP: 'gcc'
py38_ubuntu_openblas_gcc_gcc:
PACKAGER: 'ubuntu'
APT_BLAS: 'libopenblas-base libopenblas-dev'
PYTHON_VERSION: '3.8'
CC_OUTER_LOOP: 'gcc'
CC_INNER_LOOP: 'gcc'
# Linux + Python 3.9 and homogeneous runtime nesting.
py39_conda_openblas_clang_clang:
PACKAGER: 'conda'
PYTHON_VERSION: '3.9'
BLAS: 'openblas'
CC_OUTER_LOOP: 'clang-10'
CC_INNER_LOOP: 'clang-10'
# Linux environment with MKL and Clang (known to be unsafe for
# threadpoolctl) to only test the warning from multiple OpenMP.
pylatest_conda_mkl_clang_gcc:
PACKAGER: 'conda'
PYTHON_VERSION: '*'
BLAS: 'mkl'
CC_OUTER_LOOP: 'clang-10'
CC_INNER_LOOP: 'gcc'
TESTS: 'libomp_libiomp_warning'
# Linux environment with MKL, safe for threadpoolctl.
pylatest_conda_mkl_gcc_gcc:
PACKAGER: 'conda'
PYTHON_VERSION: '*'
BLAS: 'mkl'
CC_OUTER_LOOP: 'gcc'
CC_INNER_LOOP: 'gcc'
MKL_THREADING_LAYER: 'INTEL'
# Linux + Python 3.8 with numpy / scipy installed with pip from PyPI
# and heterogeneous OpenMP runtimes.
py38_pip_openblas_gcc_clang:
PACKAGER: 'pip'
PYTHON_VERSION: '3.8'
CC_OUTER_LOOP: 'gcc'
CC_INNER_LOOP: 'clang-10'
# Linux environment with numpy from conda-forge channel and openblas-openmp
pylatest_conda_forge:
PACKAGER: 'conda-forge'
PYTHON_VERSION: '*'
BLAS: 'openblas'
OPENBLAS_THREADING_LAYER: 'openmp'
CC_OUTER_LOOP: 'gcc'
CC_INNER_LOOP: 'gcc'
# Linux environment with no numpy and heterogeneous OpenMP runtimes.
pylatest_conda_nonumpy_gcc_clang:
PACKAGER: 'conda'
NO_NUMPY: 'true'
PYTHON_VERSION: '*'
CC_OUTER_LOOP: 'gcc'
CC_INNER_LOOP: 'clang-10'
# Linux environment with numpy linked to BLIS
pylatest_blis_gcc_clang_openmp:
PACKAGER: 'conda'
PYTHON_VERSION: '*'
INSTALL_BLAS: 'blis'
BLIS_NUM_THREADS: '4'
CC_OUTER_LOOP: 'gcc'
CC_INNER_LOOP: 'gcc'
BLIS_CC: 'clang-10'
BLIS_ENABLE_THREADING: 'openmp'
pylatest_blis_clang_gcc_pthreads:
PACKAGER: 'conda'
PYTHON_VERSION: '*'
INSTALL_BLAS: 'blis'
BLIS_NUM_THREADS: '4'
CC_OUTER_LOOP: 'clang-10'
CC_INNER_LOOP: 'clang-10'
BLIS_CC: 'gcc-8'
BLIS_ENABLE_THREADING: 'pthreads'
pylatest_blis_no_threading:
PACKAGER: 'conda'
PYTHON_VERSION: '*'
INSTALL_BLAS: 'blis'
BLIS_NUM_THREADS: '1'
CC_OUTER_LOOP: 'gcc'
CC_INNER_LOOP: 'gcc'
BLIS_CC: 'gcc-8'
BLIS_ENABLE_THREADING: 'no'
pylatest_flexiblas:
PACKAGER: 'conda'
PYTHON_VERSION: '*'
INSTALL_BLAS: 'flexiblas'
PLATFORM_SPECIFIC_PACKAGES: 'mkl'
CC_OUTER_LOOP: 'gcc'
CC_INNER_LOOP: 'gcc'
- template: continuous_integration/posix.yml
parameters:
name: macOS
vmImage: macOS-latest
matrix:
# MacOS environment with OpenMP installed through homebrew
py38_conda_homebrew_libomp:
PACKAGER: 'conda'
PYTHON_VERSION: '3.8'
BLAS: 'openblas'
CC_OUTER_LOOP: 'clang'
CC_INNER_LOOP: 'clang'
INSTALL_LIBOMP: 'homebrew'
# MacOS env with OpenBLAS and OpenMP installed through conda-forge compilers
py39_conda_forge_clang_openblas:
PACKAGER: 'conda-forge'
PYTHON_VERSION: '*'
BLAS: 'openblas'
CC_OUTER_LOOP: 'clang'
CC_INNER_LOOP: 'clang'
INSTALL_LIBOMP: 'conda-forge'
# MacOS environment with OpenMP installed through conda-forge compilers
pylatest_conda_forge_clang:
PACKAGER: 'conda-forge'
PYTHON_VERSION: '*'
BLAS: 'mkl'
CC_OUTER_LOOP: 'clang'
CC_INNER_LOOP: 'clang'
INSTALL_LIBOMP: 'conda-forge'
pylatest_flexiblas:
PACKAGER: 'conda'
PYTHON_VERSION: '*'
INSTALL_BLAS: 'flexiblas'
PLATFORM_SPECIFIC_PACKAGES: 'mkl'
CC_OUTER_LOOP: 'clang'
CC_INNER_LOOP: 'clang'
- stage:
jobs:
# Meta-test to ensure that at least of the above CI configurations had
# the necessary platform settings to execute each test without raising
# skipping.
- job: 'no_test_always_skipped'
displayName: 'No test always skipped'
pool:
vmImage: ubuntu-latest
steps:
- download: current
- script: |
python continuous_integration/check_no_test_skipped.py $(Pipeline.Workspace)
displayName: 'No test always skipped'