1111- job : git_commit
1212 displayName : Get Git Commit
1313 pool :
14- vmImage : ubuntu-20 .04
14+ vmImage : ubuntu-22 .04
1515 steps :
1616 - bash : |
1717 set -ex
@@ -38,21 +38,21 @@ jobs:
3838 )
3939 displayName : Linting
4040 pool :
41- vmImage : ubuntu-20 .04
41+ vmImage : ubuntu-22 .04
4242 steps :
4343 - task : UsePythonVersion@0
4444 inputs :
4545 versionSpec : ' 3.9'
4646 - bash : |
4747 # Include pytest compatibility with mypy
48- pip install pytest flake8 mypy==0.782 black==22 .3 isort
48+ pip install flake8 pytest mypy==1.3.0 black==23 .3 ruff==0.0.272
4949 displayName: Install linters
5050 - bash : |
5151 black --check --diff .
5252 displayName: Run black
5353 - bash : |
54- isort -- check --diff .
55- displayName: Run isort
54+ ruff check --show-source .
55+ displayName: Run ruff
5656 - bash : |
5757 ./build_tools/azure/linting.sh
5858 displayName: Run linting
6363 - template : build_tools/azure/posix.yml
6464 parameters :
6565 name : Linux_Nightly
66- vmImage : ubuntu-20 .04
66+ vmImage : ubuntu-22 .04
6767 dependsOn : [git_commit, linting]
6868 condition : |
6969 and(
8686- template : build_tools/azure/posix.yml
8787 parameters :
8888 name : Linux_Runs
89- vmImage : ubuntu-20 .04
89+ vmImage : ubuntu-22 .04
9090 dependsOn : [git_commit]
9191 condition : |
9292 and(
@@ -125,7 +125,7 @@ jobs:
125125- template : build_tools/azure/posix.yml
126126 parameters :
127127 name : Linux
128- vmImage : ubuntu-20 .04
128+ vmImage : ubuntu-22 .04
129129 dependsOn : [linting, git_commit]
130130 condition : |
131131 and(
@@ -144,7 +144,7 @@ jobs:
144144 THREADPOOLCTL_VERSION : ' min'
145145 COVERAGE : ' false'
146146 # Linux + Python 3.8 build with OpenBLAS and without SITE_JOBLIB
147- py38_conda_defaults_openblas :
147+ py38_conda_conda_forge_openblas :
148148 DISTRIB : ' conda'
149149 CONDA_CHANNEL : ' conda-forge'
150150 PYTHON_VERSION : ' 3.8'
@@ -170,6 +170,13 @@ jobs:
170170 TEST_DOCSTRINGS : ' true'
171171 CHECK_WARNINGS : ' false'
172172 SKLEARN_VERSION : ' 1.1.3'
173+ pylatest_pip_openblas_sklearn_intermediate_bis :
174+ DISTRIB : ' conda-pip-latest'
175+ PYTHON_VERSION : ' 3.10'
176+ TEST_DOCS : ' true'
177+ TEST_DOCSTRINGS : ' true'
178+ CHECK_WARNINGS : ' false'
179+ SKLEARN_VERSION : ' 1.2.2'
173180 pylatest_pip_tensorflow :
174181 DISTRIB : ' conda-pip-latest-tensorflow'
175182 CONDA_CHANNEL : ' conda-forge'
@@ -263,12 +270,21 @@ jobs:
263270 CONDA_CHANNEL : ' conda-forge'
264271 CPU_COUNT : ' 3'
265272 TEST_DOCS : ' true'
266- pylatest_conda_mkl_no_openmp :
273+ # TODO: re-enable when we find out why MKL on defaults segfaults
274+ # It seems that scikit-learn from defaults channel is built with LLVM/CLANG OMP
275+ # while we use MKL OMP. This could be the cause of the segfaults.
276+ # pylatest_conda_mkl_no_openmp:
277+ # DISTRIB: 'conda'
278+ # BLAS: 'mkl'
279+ # SKLEARN_SKIP_OPENMP_TEST: 'true'
280+ # CPU_COUNT: '3'
281+ # TEST_DOCS: 'true'
282+ conda_conda_forge_openblas :
267283 DISTRIB : ' conda'
268- BLAS : ' mkl'
269- SKLEARN_SKIP_OPENMP_TEST : ' true'
270- CPU_COUNT : ' 3'
284+ CONDA_CHANNEL : ' conda-forge'
285+ BLAS : ' openblas'
271286 TEST_DOCS : ' true'
287+ CPU_COUNT : ' 3'
272288
273289- template : build_tools/azure/windows.yml
274290 parameters :
0 commit comments