1- version : 2
1+ version : 2.1
22
33jobs :
4+ lint :
5+ docker :
6+ - image : cimg/python:3.10.16
7+ steps :
8+ - checkout
9+ - run :
10+ name : dependencies
11+ command : |
12+ source build_tools/shared.sh
13+ # Include pytest compatibility with mypy
14+ pip install pytest $(get_dep ruff min) $(get_dep mypy min) cython-lint
15+ - run :
16+ name : linting
17+ command : ./build_tools/linting.sh
18+
419 doc-min-dependencies :
520 docker :
6- - image : circleci/python:3.7.3-stretch
21+ - image : cimg/base:current-22.04
722 environment :
8- - OMP_NUM_THREADS : 2
923 - MKL_NUM_THREADS : 2
24+ - OPENBLAS_NUM_THREADS : 2
1025 - CONDA_ENV_NAME : testenv
11- - PYTHON_VERSION : 3.6
12- - NUMPY_VERSION : ' min'
13- - SCIPY_VERSION : ' min'
14- - MATPLOTLIB_VERSION : ' min'
15- - CYTHON_VERSION : ' min'
16- - SCIKIT_IMAGE_VERSION : ' min'
17- - SPHINX_VERSION : ' min'
18- - PANDAS_VERSION : ' min'
19- - SPHINX_GALLERY_VERSION : ' min'
20- - NUMPYDOC_VERSION : ' min'
21- - SPHINX_PROMPT_VERSION : ' min'
26+ - LOCK_FILE : build_tools/circle/doc_min_dependencies_linux-64_conda.lock
27+ # Do not fail if the documentation build generates warnings with minimum
28+ # dependencies as long as we can avoid raising warnings with more recent
29+ # versions of the same dependencies.
30+ - SKLEARN_WARNINGS_AS_ERRORS : ' 0'
2231 steps :
2332 - checkout
2433 - run : ./build_tools/circle/checkout_merge_commit.sh
2534 - restore_cache :
26- key : v1-datasets-{{ .Branch }}
35+ key : v1-doc-min-deps- datasets-{{ .Branch }}
2736 - restore_cache :
2837 keys :
2938 - doc-min-deps-ccache-{{ .Branch }}
3544 - ~/.ccache
3645 - ~/.cache/pip
3746 - save_cache :
38- key : v1-datasets-{{ .Branch }}
47+ key : v1-doc-min-deps- datasets-{{ .Branch }}
3948 paths :
4049 - ~/scikit_learn_data
4150 - store_artifacts :
@@ -47,27 +56,20 @@ jobs:
4756
4857 doc :
4958 docker :
50- - image : circleci/python:3.7.3-stretch
59+ - image : cimg/base:current-22.04
5160 environment :
52- - OMP_NUM_THREADS : 2
5361 - MKL_NUM_THREADS : 2
62+ - OPENBLAS_NUM_THREADS : 2
5463 - CONDA_ENV_NAME : testenv
55- - PYTHON_VERSION : 3
56- - NUMPY_VERSION : ' latest'
57- - SCIPY_VERSION : ' latest'
58- - MATPLOTLIB_VERSION : ' latest'
59- - CYTHON_VERSION : ' latest'
60- - SCIKIT_IMAGE_VERSION : ' latest'
61- - SPHINX_VERSION : ' min'
62- - PANDAS_VERSION : ' latest'
63- - SPHINX_GALLERY_VERSION : ' latest'
64- - NUMPYDOC_VERSION : ' latest'
65- - SPHINX_PROMPT_VERSION : ' latest'
64+ - LOCK_FILE : build_tools/circle/doc_linux-64_conda.lock
65+ # Make sure that we fail if the documentation build generates warnings with
66+ # recent versions of the dependencies.
67+ - SKLEARN_WARNINGS_AS_ERRORS : ' 1'
6668 steps :
6769 - checkout
6870 - run : ./build_tools/circle/checkout_merge_commit.sh
6971 - restore_cache :
70- key : v1-datasets-{{ .Branch }}
72+ key : v1-doc- datasets-{{ .Branch }}
7173 - restore_cache :
7274 keys :
7375 - doc-ccache-{{ .Branch }}
7981 - ~/.ccache
8082 - ~/.cache/pip
8183 - save_cache :
82- key : v1-datasets-{{ .Branch }}
84+ key : v1-doc- datasets-{{ .Branch }}
8385 paths :
8486 - ~/scikit_learn_data
8587 - store_artifacts :
9496 root : doc/_build/html
9597 paths : .
9698
97- lint :
98- docker :
99- - image : circleci/python:3.6
100- steps :
101- - checkout
102- - run : ./build_tools/circle/checkout_merge_commit.sh
103- - run :
104- name : dependencies
105- command : sudo pip install flake8
106- - run :
107- name : linting
108- command : ./build_tools/circle/linting.sh
109-
110- pypy3 :
111- docker :
112- - image : condaforge/miniforge3
113- environment :
114- # Avoid the interactive dialog when installing tzdata
115- - DEBIAN_FRONTEND : noninteractive
116- steps :
117- - restore_cache :
118- keys :
119- - pypy3-ccache-{{ .Branch }}
120- - pypy3-ccache
121- - run : apt-get -yq update && apt-get -yq install git ssh
122- - checkout
123- - run : conda init bash && source ~/.bashrc
124- - run : ./build_tools/circle/build_test_pypy.sh
125- - save_cache :
126- key : pypy3-ccache-{{ .Branch }}-{{ .BuildNum }}
127- paths :
128- - ~/.ccache
129- - ~/.cache/pip
130-
13199 deploy :
132100 docker :
133- - image : circleci/python:3.6
101+ - image : cimg/base:current-22.04
134102 steps :
135103 - checkout
136104 - run : ./build_tools/circle/checkout_merge_commit.sh
@@ -139,7 +107,7 @@ jobs:
139107 - attach_workspace :
140108 at : doc/_build/html
141109 - run : ls -ltrh doc/_build/html/stable
142- - deploy :
110+ - run :
143111 command : |
144112 if [[ "${CIRCLE_BRANCH}" =~ ^main$|^[0-9]+\.[0-9]+\.X$ ]]; then
145113 bash build_tools/circle/push_doc.sh doc/_build/html/stable
@@ -156,21 +124,6 @@ workflows:
156124 - doc-min-dependencies :
157125 requires :
158126 - lint
159- - pypy3 :
160- filters :
161- branches :
162- only :
163- - 0.20.X
164127 - deploy :
165128 requires :
166129 - doc
167- pypy :
168- triggers :
169- - schedule :
170- cron : " 0 0 * * *"
171- filters :
172- branches :
173- only :
174- - main
175- jobs :
176- - pypy3
0 commit comments