@@ -18,7 +18,7 @@ concurrency:
18
18
19
19
jobs :
20
20
build_cpu_py :
21
- runs-on : ubuntu-18 .04
21
+ runs-on : ubuntu-22 .04
22
22
strategy :
23
23
matrix :
24
24
python-version : [3.7, 3.8, 3.9]
@@ -27,15 +27,15 @@ jobs:
27
27
- torch : 1.8.1
28
28
torchvision : 0.9.1
29
29
steps :
30
- - uses : actions/checkout@v2
30
+ - uses : actions/checkout@v3
31
31
- name : Set up Python ${{ matrix.python-version }}
32
- uses : actions/setup-python@v2
32
+ uses : actions/setup-python@v4
33
33
with :
34
34
python-version : ${{ matrix.python-version }}
35
35
- name : Upgrade pip
36
36
run : pip install pip --upgrade
37
37
- name : Install PyTorch
38
- run : pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
38
+ run : pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/cpu/ torch_stable.html
39
39
- name : Install MMEngine
40
40
run : pip install git+https://github.com/open-mmlab/mmengine.git@main
41
41
- name : Install MMCV
53
53
coverage run --branch --source mmdet3d -m pytest tests/
54
54
coverage xml
55
55
coverage report -m
56
+
56
57
build_cpu_pt :
57
- runs-on : ubuntu-18 .04
58
+ runs-on : ubuntu-22 .04
58
59
strategy :
59
60
matrix :
60
61
python-version : [3.7]
@@ -72,20 +73,23 @@ jobs:
72
73
torchvision : 0.11.2
73
74
- torch : 1.11.0
74
75
torchvision : 0.12.0
75
- - torch : 1.12.1
76
- torchvision : 0.13.1
76
+ - torch : 1.12.0
77
+ torchvision : 0.13.0
77
78
- torch : 1.13.0
78
79
torchvision : 0.14.0
80
+ - torch : 2.0.0
81
+ torchvision : 0.15.1
82
+ python-version : 3.8
79
83
steps :
80
- - uses : actions/checkout@v2
84
+ - uses : actions/checkout@v3
81
85
- name : Set up Python ${{ matrix.python-version }}
82
- uses : actions/setup-python@v2
86
+ uses : actions/setup-python@v4
83
87
with :
84
88
python-version : ${{ matrix.python-version }}
85
89
- name : Upgrade pip
86
90
run : pip install pip --upgrade
87
91
- name : Install PyTorch
88
- run : pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
92
+ run : pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/cpu/ torch_stable.html
89
93
- name : Install MMEngine
90
94
run : pip install git+https://github.com/open-mmlab/mmengine.git@main
91
95
- name : Install MMCV
@@ -115,7 +119,7 @@ jobs:
115
119
fail_ci_if_error : false
116
120
117
121
build_cu102 :
118
- runs-on : ubuntu-18 .04
122
+ runs-on : ubuntu-22 .04
119
123
container :
120
124
image : pytorch/pytorch:1.8.1-cuda10.2-cudnn7-devel
121
125
strategy :
@@ -125,9 +129,9 @@ jobs:
125
129
- torch : 1.8.1
126
130
cuda : 10.2
127
131
steps :
128
- - uses : actions/checkout@v2
132
+ - uses : actions/checkout@v3
129
133
- name : Set up Python ${{ matrix.python-version }}
130
- uses : actions/setup-python@v2
134
+ uses : actions/setup-python@v4
131
135
with :
132
136
python-version : ${{ matrix.python-version }}
133
137
- name : Upgrade pip
@@ -136,14 +140,8 @@ jobs:
136
140
run : |
137
141
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
138
142
apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
139
- - name : Install Python-dev
140
- run : apt-get update && apt-get install -y python${{matrix.python-version}}-dev
141
- if : ${{matrix.python-version != 3.9}}
142
143
- name : Install system dependencies
143
- run : |
144
- apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6
145
- - name : Install PyTorch
146
- run : python -m pip install torch==1.8.1+cu102 torchvision==0.9.1+cu102 -f https://download.pytorch.org/whl/torch_stable.html
144
+ run : apt-get update && apt-get install -y ffmpeg libsm6 libxext6 git ninja-build libglib2.0-0 libsm6 libxrender-dev libxext6
147
145
- name : Install mmdet3d dependencies
148
146
run : |
149
147
pip install git+https://github.com/open-mmlab/mmengine.git@main
@@ -152,28 +150,34 @@ jobs:
152
150
pip install git+https://github.com/open-mmlab/[email protected]
153
151
pip install -r requirements/tests.txt
154
152
- name : Build and install
153
+ run : pip install -e .
154
+ - name : Run unittests and generate coverage report
155
155
run : |
156
- python setup.py check -m -s
157
- TORCH_CUDA_ARCH_LIST=7.0 pip install -e .
158
- build_windows :
159
- runs-on : ${{ matrix.os }}
156
+ coverage run --branch --source mmdet3d -m pytest tests/
157
+ coverage xml
158
+ coverage report -m
159
+
160
+ build_cu116 :
161
+ runs-on : ubuntu-22.04
162
+ container :
163
+ image : pytorch/pytorch:1.13.0-cuda11.6-cudnn8-devel
160
164
strategy :
161
165
matrix :
162
- os : [windows-2022]
163
- python : [3.7]
164
- platform : [cpu, cu111]
166
+ python-version : [3.7]
165
167
steps :
166
- - uses : actions/checkout@v2
167
- - name : Set up Python ${{ matrix.python }}
168
- uses : actions/setup-python@v2
168
+ - uses : actions/checkout@v3
169
+ - name : Set up Python ${{ matrix.python-version }}
170
+ uses : actions/setup-python@v4
169
171
with :
170
- python-version : ${{ matrix.python }}
172
+ python-version : ${{ matrix.python-version }}
171
173
- name : Upgrade pip
172
174
run : pip install pip --upgrade
173
- - name : Install lmdb
174
- run : pip install lmdb
175
- - name : Install PyTorch
176
- run : pip install torch==1.8.1+${{matrix.platform}} torchvision==0.9.1+${{matrix.platform}} -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
175
+ - name : Fetch GPG keys
176
+ run : |
177
+ apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
178
+ apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
179
+ - name : Install system dependencies
180
+ run : apt-get update && apt-get install -y git ffmpeg libturbojpeg
177
181
- name : Install mmdet3d dependencies
178
182
run : |
179
183
pip install git+https://github.com/open-mmlab/mmengine.git@main
@@ -182,42 +186,41 @@ jobs:
182
186
pip install git+https://github.com/open-mmlab/[email protected]
183
187
pip install -r requirements/tests.txt
184
188
- name : Build and install
185
- run : |
186
- pip install -e .
189
+ run : pip install -e .
187
190
- name : Run unittests and generate coverage report
188
191
run : |
189
- pytest tests/
190
- build_cu116 :
191
- runs-on : ubuntu-18.04
192
- container :
193
- image : pytorch/pytorch:1.13.0-cuda11.6-cudnn8-devel
192
+ coverage run --branch --source mmcv -m pytest tests
193
+ coverage xml
194
+ coverage report -m
195
+
196
+ build_windows :
197
+ runs-on : windows-2022
194
198
strategy :
195
199
matrix :
196
- python-version : [ 3.7 ]
200
+ python-version : [3.7]
201
+ platform : [cpu, cu111]
202
+ torch : [1.8.1]
203
+ torchvision : [0.9.1]
197
204
steps :
198
- - uses : actions/checkout@v2
199
- - name : Set up Python ${{ matrix.python-version }}
200
- uses : actions/setup-python@v2
205
+ - uses : actions/checkout@v3
206
+ - name : Set up Python ${{ matrix.python }}
207
+ uses : actions/setup-python@v4
201
208
with :
202
- python-version : ${{ matrix.python-version }}
209
+ python-version : ${{ matrix.python }}
203
210
- name : Upgrade pip
204
211
run : pip install pip --upgrade
205
- - name : Fetch GPG keys
212
+ - name : Install lmdb
213
+ run : pip install lmdb
214
+ - name : Install PyTorch
215
+ run : pip install torch==${{matrix.torch}}+${{matrix.platform}} torchvision==${{matrix.torchvision}}+${{matrix.platform}} -f https://download.pytorch.org/whl/${{matrix.platform}}/torch_stable.html
216
+ - name : Install mmdet3d dependencies
206
217
run : |
207
- apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/cuda/repos/ubuntu1804/x86_64/3bf863cc.pub
208
- apt-key adv --fetch-keys https://developer.download.nvidia.com/compute/machine-learning/repos/ubuntu1804/x86_64/7fa2af80.pub
209
- - name : Install system dependencies
210
- run : apt-get update && apt-get install -y git ffmpeg libturbojpeg
211
- - name : Install MMEngine from main branch
212
- run : pip install git+https://github.com/open-mmlab/mmengine.git@main
213
- - name : Install ninja to speed the compilation
214
- run : pip install ninja
215
- - name : Build MMCV from source
216
- run : pip install -e . -v
217
- - name : Install unit tests dependencies
218
- run : pip install -r requirements/tests.txt
218
+ pip install git+https://github.com/open-mmlab/mmengine.git@main
219
+ pip install -U openmim
220
+ mim install 'mmcv >= 2.0.0rc1'
221
+ pip install git+https://github.com/open-mmlab/[email protected]
222
+ pip install -r requirements/tests.txt
223
+ - name : Build and install
224
+ run : pip install -e .
219
225
- name : Run unittests and generate coverage report
220
- run : |
221
- coverage run --branch --source mmcv -m pytest tests
222
- coverage xml
223
- coverage report -m
226
+ run : pytest tests/
0 commit comments