@@ -15,7 +15,7 @@ stages:
15
15
steps :
16
16
- task : UsePythonVersion@0
17
17
inputs :
18
- versionSpec : ' 3.9 '
18
+ versionSpec : ' 3.10 '
19
19
- script : |
20
20
python -m pip install --upgrade pip setuptools wheel
21
21
pip install pre-commit
@@ -35,7 +35,7 @@ stages:
35
35
steps :
36
36
- task : UsePythonVersion@0
37
37
inputs :
38
- versionSpec : ' 3.9 '
38
+ versionSpec : ' 3.10 '
39
39
- script : |
40
40
python -m pip install --upgrade pip setuptools wheel
41
41
pip install -r requirements-dev.txt
@@ -123,6 +123,8 @@ stages:
123
123
python.version : ' 3.8'
124
124
Python39 :
125
125
python.version : ' 3.9'
126
+ Python310 :
127
+ python.version : ' 3.10'
126
128
127
129
steps :
128
130
- task : UsePythonVersion@0
@@ -170,8 +172,8 @@ stages:
170
172
vmImage : ' windows-latest'
171
173
strategy :
172
174
matrix :
173
- Python39 :
174
- python.version : ' 3.9 '
175
+ Python310 :
176
+ python.version : ' 3.10 '
175
177
176
178
steps :
177
179
- task : UsePythonVersion@0
@@ -196,17 +198,49 @@ stages:
196
198
cd doc ; .\make.bat html
197
199
displayName : ' Build the HTML documentation'
198
200
201
+ - stage : test_macOS_latest
202
+ dependsOn : check_codestyle
203
+ condition : succeededOrFailed()
204
+ jobs :
205
+ - job :
206
+ pool :
207
+ vmImage : ' macos-latest'
208
+ strategy :
209
+ matrix :
210
+ Python310 :
211
+ python.version : ' 3.10'
212
+
213
+ steps :
214
+ - task : UsePythonVersion@0
215
+ inputs :
216
+ versionSpec : ' $(python.version)'
217
+ displayName : ' Use Python $(python.version)'
218
+ - script : |
219
+ python -m pip install --upgrade pip setuptools wheel
220
+ pip install -r requirements-dev.txt
221
+ displayName: 'Install latest available version of Python dependencies'
222
+ - script : |
223
+ python setup.py install
224
+ displayName: 'Install lmfit'
225
+ - script : |
226
+ pip list
227
+ displayName: 'List installed Python packages'
228
+ - script : |
229
+ pip install pytest-azurepipelines
230
+ pytest
231
+ displayName: 'Run test-suite and collect coverage'
232
+
199
233
- stage : development_version
200
234
dependsOn : check_codestyle
201
235
condition : succeededOrFailed()
202
236
jobs :
203
- - job : Python310_dev
237
+ - job : Python311_dev
204
238
pool :
205
239
vmImage : ' ubuntu-latest'
206
240
steps :
207
241
- script : |
208
242
sudo add-apt-repository ppa:deadsnakes/nightly
209
- sudo apt-get update && sudo apt-get install -y --no-install-recommends python3.10 -dev python3.10 -distutils
243
+ sudo apt-get update && sudo apt-get install -y --no-install-recommends python3.11 -dev python3.11 -distutils
210
244
displayName: Install Python development version from the deadsnakes PPA
211
245
- script : |
212
246
sudo apt-get update && sudo apt-get install -yq --no-install-suggests --no-install-recommends \
@@ -216,40 +250,44 @@ stages:
216
250
- script : |
217
251
export PATH=/home/vsts/.local/bin:$PATH
218
252
curl https://bootstrap.pypa.io/get-pip.py -o get-pip.py
219
- python3.10 get-pip.py --user
220
- pip3.10 install -U pip setuptools wheel pybind11 cython pythran
221
- displayName: 'Install pip, setuptools, wheel, pybind11, cython, and pythran '
253
+ python3.11 get-pip.py --user
254
+ pip3.11 install -U pip setuptools wheel pybind11 cython || echo -e "\043#vso[task.logissue type=warning;] Allowed failure for development version!!"
255
+ displayName: 'Install pip, setuptools, wheel, pybind11, and cython '
222
256
- script : |
223
257
export PATH=/home/vsts/.local/bin:$PATH
224
- export numpy_version=1.21.3
258
+ export numpy_version=1.21.4
225
259
wget https://github.com/numpy/numpy/releases/download/v${numpy_version}/numpy-${numpy_version}.tar.gz
226
260
tar xzvf numpy-${numpy_version}.tar.gz
227
261
cd numpy-${numpy_version}
228
- python3.10 setup.py install --user
262
+ python3.11 setup.py install --user || echo -e "\043#vso[task.logissue type=warning;] Allowed failure for development version!!"
229
263
displayName: 'Install latest available version of NumPy'
230
264
- script : |
231
265
export PATH=/home/vsts/.local/bin:$PATH
232
- export scipy_version=1.7.1
266
+ pip3.11 install -U pythran || echo -e "\043#vso[task.logissue type=warning;] Allowed failure for development version!!"
267
+ displayName: 'Install pythran'
268
+ - script : |
269
+ export PATH=/home/vsts/.local/bin:$PATH
270
+ export scipy_version=1.7.3
233
271
wget https://github.com/scipy/scipy/releases/download/v${scipy_version}/scipy-${scipy_version}.tar.gz
234
272
tar xzvf scipy-${scipy_version}.tar.gz
235
273
cd scipy-${scipy_version}
236
- python3.10 setup.py install --user
274
+ python3.11 setup.py install --user || echo -e "\043#vso[task.logissue type=warning;] Allowed failure for development version!!"
237
275
displayName: 'Install latest available version of SciPy'
238
276
- script : |
239
277
export PATH=/home/vsts/.local/bin:$PATH
240
278
# remove numdifftools for now as it pulls in statsmodels, that wants to build with NumPy 1.14.5
241
- pip3.10 install asteval uncertainties dill emcee flaky pytest pytest-cov
279
+ pip3.11 install asteval uncertainties dill emcee flaky pytest pytest-cov || echo -e "\043#vso[task.logissue type=warning;] Allowed failure for development version!!"
242
280
displayName: 'Install latest available version of Python dependencies'
243
281
- script : |
244
- python3.10 setup.py install --user
282
+ python3.11 setup.py install --user || echo -e "\043#vso[task.logissue type=warning;] Allowed failure for development version!!"
245
283
displayName: 'Install lmfit'
246
284
- script : |
247
285
export PATH=/home/vsts/.local/bin:$PATH
248
- pip3.10 list
286
+ pip3.11 list
249
287
displayName: 'List installed Python packages'
250
288
- script : |
251
289
export PATH=/home/vsts/.local/bin:$PATH
252
- pip3.10 install pytest-azurepipelines
290
+ pip3.11 install pytest-azurepipelines
253
291
cd $(Agent.BuildDirectory)/s/tests
254
292
pytest || echo -e "\043#vso[task.logissue type=warning;] Allowed failure for development version!!"
255
293
displayName: 'Run test-suite'
0 commit comments