21
21
runs-on : ubuntu-22.04
22
22
strategy :
23
23
matrix :
24
- python-version : [3.7, 3. 8, 3.9]
24
+ python-version : [3.8, 3.9]
25
25
torch : [1.8.1]
26
26
include :
27
27
- torch : 1.8.1
43
43
pip install -U openmim
44
44
mim install 'mmcv >= 2.0.0rc4'
45
45
- name : Install MMDet
46
- run : mim install 'mmdet>=3.0.0'
46
+ run : pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
47
47
- name : Install other dependencies
48
48
run : pip install -r requirements/tests.txt
49
49
- name : Build and install
59
59
strategy :
60
60
matrix :
61
61
python-version : [3.7]
62
- torch : [1.6.0, 1.7.1, 1. 8.1, 1.9.1, 1.10.1, 1.11.0, 1.12.1 , 1.13.0]
62
+ torch : [1.8.1, 1.9.1, 1.10.1, 1.11.0, 1.12.0 , 1.13.0]
63
63
include :
64
- - torch : 1.6.0
65
- torchvision : 0.7.0
66
- - torch : 1.7.1
67
- torchvision : 0.8.2
68
64
- torch : 1.8.1
69
65
torchvision : 0.9.1
70
66
- torch : 1.9.1
@@ -73,13 +69,13 @@ jobs:
73
69
torchvision : 0.11.2
74
70
- torch : 1.11.0
75
71
torchvision : 0.12.0
76
- - torch : 1.12.1
77
- torchvision : 0.13.1
72
+ - torch : 1.12.0
73
+ torchvision : 0.13.0
78
74
- torch : 1.13.0
79
75
torchvision : 0.14.0
80
- - torch : 2.0.0
76
+ - python-version : 3.8
77
+ torch : 2.0.0
81
78
torchvision : 0.15.1
82
- python-version : 3.8
83
79
steps :
84
80
- uses : actions/checkout@v3
85
81
- name : Set up Python ${{ matrix.python-version }}
97
93
pip install -U openmim
98
94
mim install 'mmcv >= 2.0.0rc4'
99
95
- name : Install MMDet
100
- run : mim install 'mmdet>=3.0.0'
96
+ run : pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
101
97
- name : Install other dependencies
102
98
run : pip install -r requirements/tests.txt
103
99
- name : Build and install
@@ -147,7 +143,7 @@ jobs:
147
143
pip install git+https://github.com/open-mmlab/mmengine.git@main
148
144
pip install -U openmim
149
145
mim install 'mmcv >= 2.0.0rc4'
150
- mim install 'mmdet>=3.0.0'
146
+ pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
151
147
pip install -r requirements/tests.txt
152
148
- name : Build and install
153
149
run : pip install -e .
@@ -183,7 +179,43 @@ jobs:
183
179
pip install git+https://github.com/open-mmlab/mmengine.git@main
184
180
pip install -U openmim
185
181
mim install 'mmcv >= 2.0.0rc4'
186
- mim install 'mmdet>=3.0.0'
182
+ pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
183
+ pip install -r requirements/tests.txt
184
+ - name : Build and install
185
+ run : pip install -e .
186
+ - name : Run unittests and generate coverage report
187
+ run : |
188
+ coverage run --branch --source mmcv -m pytest tests
189
+ coverage xml
190
+ coverage report -m
191
+
192
+ build_cu117 :
193
+ runs-on : ubuntu-22.04
194
+ container :
195
+ image : pytorch/pytorch:2.0.0-cuda11.7-cudnn8-devel
196
+ strategy :
197
+ matrix :
198
+ python-version : [3.9]
199
+ steps :
200
+ - uses : actions/checkout@v3
201
+ - name : Set up Python ${{ matrix.python-version }}
202
+ uses : actions/setup-python@v4
203
+ with :
204
+ python-version : ${{ matrix.python-version }}
205
+ - name : Upgrade pip
206
+ run : pip install pip --upgrade && pip install wheel
207
+ - name : Fetch GPG keys
208
+ run : |
209
+ apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
210
+ apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
211
+ - name : Install system dependencies
212
+ run : apt-get update && apt-get install -y git ffmpeg libturbojpeg
213
+ - name : Install mmdet3d dependencies
214
+ run : |
215
+ pip install git+https://github.com/open-mmlab/mmengine.git@main
216
+ pip install -U openmim
217
+ mim install 'mmcv >= 2.0.0rc4'
218
+ pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
187
219
pip install -r requirements/tests.txt
188
220
- name : Build and install
189
221
run : pip install -e .
@@ -201,12 +233,17 @@ jobs:
201
233
platform : [cpu, cu111]
202
234
torch : [1.8.1]
203
235
torchvision : [0.9.1]
236
+ include :
237
+ - python-version : 3.8
238
+ platform : cu117
239
+ torch : 2.0.0
240
+ torchvision : 0.15.1
204
241
steps :
205
242
- uses : actions/checkout@v3
206
- - name : Set up Python ${{ matrix.python }}
243
+ - name : Set up Python ${{ matrix.python-version }}
207
244
uses : actions/setup-python@v4
208
245
with :
209
- python-version : ${{ matrix.python }}
246
+ python-version : ${{ matrix.python-version }}
210
247
- name : Upgrade pip
211
248
run : python -m pip install pip --upgrade && pip install wheel
212
249
- name : Install lmdb
@@ -218,7 +255,7 @@ jobs:
218
255
pip install git+https://github.com/open-mmlab/mmengine.git@main
219
256
pip install -U openmim
220
257
mim install 'mmcv >= 2.0.0rc4'
221
- mim install 'mmdet>=3.0.0'
258
+ pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x
222
259
pip install -r requirements/tests.txt
223
260
- name : Build and install
224
261
run : pip install -e .
0 commit comments