3636 type : string
3737 torchvision :
3838 type : string
39- mmcv :
40- type : string
4139 docker :
4240 - image : cimg/python:<< parameters.python >>
4341 resource_class : large
@@ -51,30 +49,31 @@ jobs:
5149 - run :
5250 name : Configure Python & pip
5351 command : |
54- python -m pip install --upgrade pip
55- python -m pip install wheel
52+ pip install --upgrade pip
53+ pip install wheel
5654 - run :
5755 name : Install PyTorch
5856 command : |
5957 python -V
60- python -m pip install torch==<< parameters.torch >>+cpu torchvision==<< parameters.torchvision >>+cpu -f https://download.pytorch.org/whl/torch_stable.html
58+ pip install torch==<< parameters.torch >>+cpu torchvision==<< parameters.torchvision >>+cpu -f https://download.pytorch.org/whl/torch_stable.html
6159 - run :
6260 name : Install mmocr dependencies
6361 command : |
64- python -m pip install git+ssh://git@github.com/open-mmlab/mmengine.git@main
65- python -m pip install << parameters.mmcv >>
66- python -m pip install git+ssh://git@github.com/open-mmlab/mmdetection.git@dev-3.x
67- python -m pip install -r requirements.txt
62+ pip install git+https://github.com/open-mmlab/mmengine.git@main
63+ pip install -U openmim
64+ mim install 'mmcv >= 2.0.0rc1'
65+ pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
66+ pip install -r requirements/tests.txt
6867 - run :
6968 name : Build and install
7069 command : |
71- python -m pip install -e .
70+ pip install -e .
7271 - run :
7372 name : Run unittests
7473 command : |
75- python -m coverage run --branch --source mmocr -m pytest tests/
76- python -m coverage xml
77- python -m coverage report -m
74+ coverage run --branch --source mmocr -m pytest tests/
75+ coverage xml
76+ coverage report -m
7877 build_cuda :
7978 parameters :
8079 torch :
8584 cudnn :
8685 type : integer
8786 default : 7
88- mmcv :
89- type : string
9087 machine :
9188 image : ubuntu-2004-cuda-11.4:202110-01
9289 # docker_layer_caching: true
9794 # Cloning repos in VM since Docker doesn't have access to the private key
9895 name : Clone Repos
9996 command : |
100- git clone -b main --depth 1 ssh ://git@ github.com/open-mmlab/mmengine.git /home/circleci/mmengine
101- git clone -b dev-3.x --depth 1 ssh ://git@ github.com/open-mmlab/mmdetection.git /home/circleci/mmdetection
97+ git clone -b main --depth 1 https ://github.com/open-mmlab/mmengine.git /home/circleci/mmengine
98+ git clone -b dev-3.x --depth 1 https ://github.com/open-mmlab/mmdetection.git /home/circleci/mmdetection
10299 - run :
103100 name : Build Docker image
104101 command : |
@@ -108,17 +105,19 @@ jobs:
108105 name : Install mmocr dependencies
109106 command : |
110107 docker exec mmocr pip install -e /mmengine
111- docker exec mmocr pip install << parameters.mmcv >>
108+ docker exec mmocr pip install -U openmim
109+ docker exec mmocr mim install 'mmcv >= 2.0.0rc1'
112110 docker exec mmocr pip install -e /mmdetection
113- docker exec mmocr pip install -r requirements.txt
111+ docker exec mmocr pip install -r requirements/tests .txt
114112 - run :
115113 name : Build and install
116114 command : |
117115 docker exec mmocr pip install -e .
118116 - run :
119117 name : Run unittests
120118 command : |
121- docker exec mmocr python -m pytest tests/
119+ docker exec mmocr pytest tests/
120+
122121workflows :
123122 pr_stage_lint :
124123 when : << pipeline.parameters.lint_only >>
@@ -129,7 +128,7 @@ workflows:
129128 branches :
130129 ignore :
131130 - dev-1.x
132- - test- 1.x
131+ - 1.x
133132 pr_stage_test :
134133 when :
135134 not :
@@ -142,42 +141,18 @@ workflows:
142141 ignore :
143142 - dev-1.x
144143 - test-1.x
145- merge_stage_test :
146- when :
147- not :
148- << pipeline.parameters.lint_only >>
149- jobs :
150- - build_cuda :
151- name : minimum_version_gpu
152- torch : 1.6.0
153- # Use double quotation mark to explicitly specify its type
154- # as string instead of number
155- mmcv : https://download.openmmlab.com/mmcv/dev-2.x/cu101/torch1.6.0/mmcv_full-2.0.0rc0-cp37-cp37m-manylinux1_x86_64.whl
156- cuda : " 10.1"
157- filters :
158- branches :
159- only :
160- - dev-1.x
161- - test-1.x
162144 - build_cpu :
163145 name : minimum_version_cpu
164146 torch : 1.6.0
165147 torchvision : 0.7.0
166148 python : 3.6.9 # The lowest python 3.6.x version available on CircleCI images
167- mmcv : https://download.openmmlab.com/mmcv/dev-2.x/cpu/torch1.6.0/mmcv_full-2.0.0rc0-cp36-cp36m-manylinux1_x86_64.whl
168- # requires:
169- # - lint
170- filters :
171- branches :
172- only :
173- - dev-1.x
174- - test-1.x
149+ requires :
150+ - lint
175151 - build_cpu :
176152 name : maximum_version_cpu
177- torch : 1.9.0
178- torchvision : 0.10.0
153+ torch : 1.12.1
154+ torchvision : 0.13.1
179155 python : 3.9.0
180- mmcv : https://download.openmmlab.com/mmcv/dev-2.x/cpu/torch1.9.0/mmcv_full-2.0.0rc0-cp39-cp39-manylinux1_x86_64.whl
181156 requires :
182157 - minimum_version_cpu
183158 - hold :
@@ -190,6 +165,20 @@ workflows:
190165 # Use double quotation mark to explicitly specify its type
191166 # as string instead of number
192167 cuda : " 10.2"
193- mmcv : https://download.openmmlab.com/mmcv/dev-2.x/cu102/torch1.8.0/mmcv_full-2.0.0rc0-cp37-cp37m-manylinux1_x86_64.whl
194168 requires :
195169 - hold
170+ merge_stage_test :
171+ when :
172+ not :
173+ << pipeline.parameters.lint_only >>
174+ jobs :
175+ - build_cuda :
176+ name : minimum_version_gpu
177+ torch : 1.6.0
178+ # Use double quotation mark to explicitly specify its type
179+ # as string instead of number
180+ cuda : " 10.1"
181+ filters :
182+ branches :
183+ only :
184+ - dev-1.x
0 commit comments