-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
182 lines (173 loc) · 5.48 KB
/
azure-pipelines.yml
File metadata and controls
182 lines (173 loc) · 5.48 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
# from matplotlib's azure setup
variables:
HDF5_CACHE_DIR: $(Pipeline.Workspace)/cache/hdf5
PIP_CACHE_DIR: $(Pipeline.Workspace)/cache/pip
CCACHE_DIR: $(Pipeline.Workspace)/cache/ccache
jobs:
- job: 'static_checks'
pool:
vmImage: ubuntu-22.04
variables:
TOXENV: checkreadme,checkmanifest,pre-commit
steps:
- task: UsePythonVersion@0
inputs:
versionSpec: '3.10'
architecture: 'x64'
- script: |
pip install tox
displayName: Install tox
- script: |
tox
displayName: tox
- job: 'ubuntu'
pool:
vmImage: ubuntu-22.04
strategy:
matrix:
# -deps : test with default (latest) versions of dependencies
# -mindeps : test with oldest supported version of (python) dependencies
# -deps-pre : test pre-release versions of (python) dependencies)
# -tables : also check compatibility with pytables
# HDF5 installed from apt on Ubuntu
# test when we're not in a unicode locale
py310-Clocale:
python.version: '3.10'
python.architecture: 'x64'
TOXENV: py310-test-deps
TOX_TESTENV_PASSENV: LANG LC_ALL
LANG: C
LC_ALL: C
H5PY_ENFORCE_COVERAGE: yes
# Build HDF5 1.10, 1.12 or 1.14 in the test environment
py310-deps-hdf51107:
python.version: '3.10'
python.architecture: 'x64'
TOXENV: py310-test-deps
HDF5_VERSION: 1.10.7
HDF5_DIR: $(HDF5_CACHE_DIR)/$(HDF5_VERSION)
H5PY_ENFORCE_COVERAGE: yes
py310-deps-hdf51122:
python.version: '3.10'
python.architecture: 'x64'
TOXENV: py310-test-deps
HDF5_VERSION: 1.12.2
HDF5_DIR: $(HDF5_CACHE_DIR)/$(HDF5_VERSION)
H5PY_ENFORCE_COVERAGE: yes
py310-deps-hdf51146:
python.version: '3.10'
python.architecture: 'x64'
TOXENV: py310-test-deps
HDF5_VERSION: 1.14.6
HDF5_DIR: $(HDF5_CACHE_DIR)/$(HDF5_VERSION)
H5PY_ENFORCE_COVERAGE: yes
py313-deps-hdf5-2_0:
python.version: '3.13'
python.architecture: 'x64'
TOXENV: py313-test-deps
HDF5_VERSION: 2.0.0
HDF5_DIR: $(HDF5_CACHE_DIR)/$(HDF5_VERSION)
H5PY_ENFORCE_COVERAGE: yes
# do mpi tests
py310-deps-hdf51122-mpi:
python.version: '3.10'
python.architecture: 'x64'
TOXENV: py310-test-mindeps-mpi
HDF5_VERSION: 1.12.2
HDF5_DIR: $(HDF5_CACHE_DIR)/$(HDF5_VERSION)
HDF5_MPI: ON
CC: mpicc
# Latest python version
py314-deps-hdf51146:
python.version: '3.14'
python.architecture: 'x64'
TOXENV: py314-test-deps
HDF5_VERSION: 1.14.6
HDF5_DIR: $(HDF5_CACHE_DIR)/$(HDF5_VERSION)
H5PY_ENFORCE_COVERAGE: yes
# Free-threading (noGIL) Python
py314t-deps-hdf51146:
python.version: '3.14'
python.architecture: 'x64-freethreaded'
TOXENV: py314t-test-deps
HDF5_VERSION: 1.14.6
HDF5_DIR: $(HDF5_CACHE_DIR)/$(HDF5_VERSION)
H5PY_ENFORCE_COVERAGE: yes
py314t-concurrency: # Runs pytest-run-parallel
python.version: '3.14'
python.architecture: 'x64-freethreaded'
TOXENV: py314t-test-concurrency
HDF5_VERSION: 2.0.0
HDF5_DIR: $(HDF5_CACHE_DIR)/$(HDF5_VERSION)
H5PY_ENFORCE_COVERAGE: yes
maxParallel: 4
steps:
- template: ci/azure-pipelines-steps.yml
parameters:
platform: linux
installer: apt
shell: unix
- job: 'Windows'
pool:
vmImage: windows-2022
strategy:
matrix:
# -deps : test with default (latest) versions of dependencies
# -mindeps : test with oldest supported version of (python) dependencies
# -deps-pre : test pre-release versions of (python) dependencies)
#
# 64 bit - HDF5 1.10
py310-hdf5110:
python.version: '3.10'
python.architecture: 'x64'
TOXENV: py310-test-deps,py310-test-mindeps,py310-test-deps-pre
HDF5_VERSION: 1.10.7
HDF5_DIR: $(HDF5_CACHE_DIR)/$(HDF5_VERSION)
HDF5_VSVERSION: "17-64"
H5PY_ENFORCE_COVERAGE: yes
# 64 bit - HDF5 1.12
# Fewer combinations here; test_windows_wheels also tests HDF5 1.12
py310-hdf5112:
python.version: '3.10'
python.architecture: 'x64'
TOXENV: py310-test-deps
HDF5_VERSION: 1.12.1
HDF5_DIR: $(HDF5_CACHE_DIR)/$(HDF5_VERSION)
HDF5_VSVERSION: "17-64"
H5PY_ENFORCE_COVERAGE: yes
# 64 bit - HDF5 1.14
py310-hdf5114:
python.version: '3.10'
python.architecture: 'x64'
TOXENV: py310-test-deps
HDF5_VERSION: 1.14.6
HDF5_DIR: $(HDF5_CACHE_DIR)/$(HDF5_VERSION)
HDF5_VSVERSION: "17-64"
H5PY_ENFORCE_COVERAGE: yes
maxParallel: 4
steps:
- template: ci/azure-pipelines-steps.yml
parameters:
platform: windows
shell: cmd
- job: 'macOS'
pool:
vmImage: macOS-latest
timeoutInMinutes: 70 # 60 is a little short for macOS sometimes
strategy:
matrix:
# -deps : test with default (latest) versions of dependencies
# -mindeps : test with oldest supported version of (python) dependencies
# -deps-pre : test pre-release versions of (python) dependencies)
py310:
python.version: '3.10'
python.architecture: 'x64'
TOXENV: py310-test-deps
H5PY_ENFORCE_COVERAGE: yes
maxParallel: 4
steps:
- template: ci/azure-pipelines-steps.yml
parameters:
platform: macos
installer: brew
shell: unix