36
36
type : string
37
37
torchvision :
38
38
type : string
39
- mmcv :
40
- type : string
41
39
docker :
42
40
- image : cimg/python:<< parameters.python >>
43
41
resource_class : large
@@ -51,30 +49,31 @@ jobs:
51
49
- run :
52
50
name : Configure Python & pip
53
51
command : |
54
- python -m pip install --upgrade pip
55
- python -m pip install wheel
52
+ pip install --upgrade pip
53
+ pip install wheel
56
54
- run :
57
55
name : Install PyTorch
58
56
command : |
59
57
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
61
59
- run :
62
60
name : Install mmocr dependencies
63
61
command : |
64
- python -m pip install git+ssh://[email protected] /open-mmlab/mmengine.git@main
65
- python -m pip install << parameters.mmcv >>
66
- python -m pip install git+ssh://[email protected] /open-mmlab/[email protected]
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/[email protected]
66
+ pip install -r requirements/tests.txt
68
67
- run :
69
68
name : Build and install
70
69
command : |
71
- python -m pip install -e .
70
+ pip install -e .
72
71
- run :
73
72
name : Run unittests
74
73
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
78
77
build_cuda :
79
78
parameters :
80
79
torch :
85
84
cudnn :
86
85
type : integer
87
86
default : 7
88
- mmcv :
89
- type : string
90
87
machine :
91
88
image : ubuntu-2004-cuda-11.4:202110-01
92
89
# docker_layer_caching: true
97
94
# Cloning repos in VM since Docker doesn't have access to the private key
98
95
name : Clone Repos
99
96
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
102
99
- run :
103
100
name : Build Docker image
104
101
command : |
@@ -108,17 +105,19 @@ jobs:
108
105
name : Install mmocr dependencies
109
106
command : |
110
107
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'
112
110
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
114
112
- run :
115
113
name : Build and install
116
114
command : |
117
115
docker exec mmocr pip install -e .
118
116
- run :
119
117
name : Run unittests
120
118
command : |
121
- docker exec mmocr python -m pytest tests/
119
+ docker exec mmocr pytest tests/
120
+
122
121
workflows :
123
122
pr_stage_lint :
124
123
when : << pipeline.parameters.lint_only >>
@@ -129,7 +128,7 @@ workflows:
129
128
branches :
130
129
ignore :
131
130
- dev-1.x
132
- - test- 1.x
131
+ - 1.x
133
132
pr_stage_test :
134
133
when :
135
134
not :
@@ -142,42 +141,18 @@ workflows:
142
141
ignore :
143
142
- dev-1.x
144
143
- 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
162
144
- build_cpu :
163
145
name : minimum_version_cpu
164
146
torch : 1.6.0
165
147
torchvision : 0.7.0
166
148
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
175
151
- build_cpu :
176
152
name : maximum_version_cpu
177
- torch : 1.9.0
178
- torchvision : 0.10.0
153
+ torch : 1.12.1
154
+ torchvision : 0.13.1
179
155
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
181
156
requires :
182
157
- minimum_version_cpu
183
158
- hold :
@@ -190,6 +165,20 @@ workflows:
190
165
# Use double quotation mark to explicitly specify its type
191
166
# as string instead of number
192
167
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
194
168
requires :
195
169
- 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