4343 set -xe
4444 python -m pip install pytest-azurepipelines
4545 pip list
46- python -m pytest -v tslearn/ -k "not test_all_estimators"
46+ python -m pytest -v -k "not test_all_estimators"
4747 displayName: 'Test'
4848
4949 - job : ' doctests_linux'
8181 set -xe
8282 python -m pip install pytest-azurepipelines
8383 pip list
84- python -m pytest -v tslearn/ --doctest-modules -k "not test_ or test_all_estimators"
84+ python -m pytest -v --doctest-modules -k "not test_ or test_all_estimators"
8585 displayName: 'Doctest'
8686
8787 - job : ' tests_macOS'
@@ -119,7 +119,7 @@ jobs:
119119 set -xe
120120 python -m pip install pytest-azurepipelines
121121 pip list
122- python -m pytest -v tslearn/ -k "not test_all_estimators"
122+ python -m pytest -v -k "not test_all_estimators"
123123 displayName: 'Test'
124124
125125 - job : ' doctests_macOS'
@@ -157,7 +157,7 @@ jobs:
157157 set -xe
158158 python -m pip install pytest-azurepipelines
159159 pip list
160- python -m pytest -v tslearn/ --doctest-modules -k "not test_ or test_all_estimators"
160+ python -m pytest -v --doctest-modules -k "not test_ or test_all_estimators"
161161 displayName: 'Doctest'
162162
163163 - job : ' tests_windows'
@@ -192,7 +192,7 @@ jobs:
192192 - script : |
193193 python -m pip install pytest-azurepipelines
194194 pip list
195- python -m pytest -v tslearn/ -k "not test_all_estimators"
195+ python -m pytest -v -k "not test_all_estimators"
196196 displayName: 'Test'
197197
198198 - job : ' doctests_windows'
@@ -227,16 +227,12 @@ jobs:
227227 - script : |
228228 python -m pip install pytest-azurepipelines
229229 pip list
230- python -m pytest -v tslearn/ --doctest-modules -k "not test_ or test_all_estimators"
230+ python -m pytest -v --doctest-modules -k "not test_ or test_all_estimators"
231231 displayName: 'Doctest'
232232
233- - job : ' tests_basic '
233+ - job : ' tests_doctests_basic '
234234 pool :
235235 vmImage : ' ubuntu-latest'
236- strategy :
237- matrix :
238- Python310 :
239- python.version : ' 3.10'
240236 variables :
241237 OMP_NUM_THREADS : ' 2'
242238 NUMBA_NUM_THREADS : ' 2'
@@ -245,8 +241,8 @@ jobs:
245241 steps :
246242 - task : UsePythonVersion@0
247243 inputs :
248- versionSpec : ' $(python.version) '
249- displayName : ' Use Python $(python.version) '
244+ versionSpec : ' 3.10 '
245+ displayName : ' Use Python 3.10 '
250246
251247 - script : |
252248 set -xe
@@ -259,16 +255,20 @@ jobs:
259255 set -xe
260256 python -m pip install pytest-azurepipelines
261257 pip list
262- python -m pytest -v tslearn/ -k "not test_all_estimators"
258+ python -m pytest -v --doctest-modules
263259 displayName: 'Test'
264260
265- - job : ' doctests_basic '
261+ - job : ' tests_sklearn_version '
266262 pool :
267263 vmImage : ' ubuntu-latest'
268264 strategy :
269265 matrix :
270- Python310 :
271- python.version : ' 3.10'
266+ sklearn1_4 :
267+ skLearnVersion : ' 1.4.0'
268+ sklearn1_5 :
269+ skLearnVersion : ' 1.5.0'
270+ sklearn1_6 :
271+ skLearnVersion : ' 1.6.0'
272272 variables :
273273 OMP_NUM_THREADS : ' 2'
274274 NUMBA_NUM_THREADS : ' 2'
@@ -277,30 +277,28 @@ jobs:
277277 steps :
278278 - task : UsePythonVersion@0
279279 inputs :
280- versionSpec : ' $(python.version) '
281- displayName : ' Use Python $(python.version) '
280+ versionSpec : ' 3.11 '
281+ displayName : ' Use Python 3.11 '
282282
283283 - script : |
284284 set -xe
285285 python --version
286286 python -m pip install --upgrade pip
287- python -m pip install .[tests]
288- displayName: 'Install tslearn and dependencies for tests'
287+ python -m pip install 'scikit-learn~=$(skLearnVersion)'
288+ python -m pip install .[tests,all_features]
289+ displayName: 'Install tslearn all_features and dependencies for tests'
289290
290291 - script : |
291292 set -xe
292293 python -m pip install pytest-azurepipelines
293294 pip list
294- python -m pytest -v tslearn/ --doctest-modules -k 'not test_ or test_all_estimators'
295- displayName: 'Doctest'
295+ python -m pytest -v
296+ displayName: 'Test sklearn versions'
297+
296298
297299 - job : ' codecov' # must be a separate job to only disable Numbas's JIT here
298300 pool :
299301 vmImage : ' ubuntu-latest'
300- strategy :
301- matrix :
302- Python310 :
303- python.version : ' 3.10'
304302 variables :
305303 OMP_NUM_THREADS : ' 2'
306304 NUMBA_DISABLE_JIT : ' 1'
@@ -310,22 +308,28 @@ jobs:
310308 steps :
311309 - task : UsePythonVersion@0
312310 inputs :
313- versionSpec : ' $(python.version) '
314- displayName : ' Use Python $(python.version) '
311+ versionSpec : ' 3.11 '
312+ displayName : ' Use Python 3.11 '
315313
316314 - script : |
317315 set -xe
318316 python --version
319317 python -m pip install --upgrade pip
320- python -m pip install .[tests,all_features ]
318+ python -m pip install .[tests]
321319 displayName: 'Install tslearn all_features and dependencies for tests'
322320
323321 - script : |
324322 set -xe
325323 python -m pip install pytest-azurepipelines
326324 python -m pip install coverage pytest-cov
327325 pip list
328- python -m pytest -v tslearn/ --cov=tslearn
326+ python -m pytest -v --cov=tests --cov=tslearn
327+ python -m pip install .[all_features]
328+ pip list
329+ python -m pytest -v --cov=tests --cov=tslearn --cov-append
330+ pip install scikit-learn~=1.4.0
331+ pip list
332+ python -m pytest -v --cov=tests --cov=tslearn --cov-append -k "test_all_estimators or test_scaler_allow_variable_length"
329333 displayName: 'Test'
330334
331335 # Upload coverage to codecov.io
0 commit comments