Skip to content

Commit a897a34

Browse files
authored
[Improvement] Add more CI (open-mmlab#460)
* add more CI * fix missing * remove python-version * fixed acc
1 parent 0df07ab commit a897a34

File tree

3 files changed

+1068
-1067
lines changed

3 files changed

+1068
-1067
lines changed

.github/workflows/build.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name: build
22

3-
on: [push, pull_request]
3+
on: [ push, pull_request ]
44

55
jobs:
66
lint:
@@ -29,25 +29,26 @@ jobs:
2929
UBUNTU_VERSION: ubuntu1804
3030
FORCE_CUDA: 1
3131
MMCV_CUDA_ARGS: -gencode=arch=compute_61,code=sm_61
32-
runs-on: ubuntu-latest
32+
runs-on: ubuntu-18.04
3333
strategy:
3434
matrix:
35-
python-version: [3.6, 3.7]
36-
torch: [1.3.0+cpu, 1.5.0+cpu]
35+
python-version: [ 3.6, 3.7 ]
36+
torch: [ 1.3.0+cpu, 1.5.0+cpu, 1.5.0+cu101, 1.6.0+cu101, 1.7.0+cu101, 1.8.0+cu101 ]
3737
include:
3838
- torch: 1.3.0+cpu
3939
torchvision: 0.4.1+cpu
4040
- torch: 1.5.0+cpu
4141
torchvision: 0.6.0+cpu
42-
- torch: 1.5.0+cpu
43-
torchvision: 0.6.0+cpu
44-
python-version: 3.8
4542
- torch: 1.5.0+cu101
4643
torchvision: 0.6.0+cu101
47-
python-version: 3.7
4844
- torch: 1.6.0+cu101
4945
torchvision: 0.7.0+cu101
50-
python-version: 3.7
46+
- torch: 1.7.0+cu101
47+
torchvision: 0.8.1+cu101
48+
- torch: 1.8.0+cu101
49+
torchvision: 0.9.0+cu101
50+
- torch: 1.8.0+cu101
51+
torchvision: 0.9.0+cu101
5152

5253
steps:
5354
- uses: actions/checkout@v2
@@ -56,7 +57,7 @@ jobs:
5657
with:
5758
python-version: ${{ matrix.python-version }}
5859
- name: Install CUDA
59-
if: ${{matrix.torch == '1.5.0+cu101'}}
60+
if: ${{matrix.torch == '1.5.0+cu101' || matrix.torch == '1.6.0+cu101' || matrix.torch == '1.7.0+cu101' || matrix.torch == '1.8.0+cu101'}}
6061
run: |
6162
export INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb
6263
wget http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER}
@@ -88,7 +89,7 @@ jobs:
8889
coverage report -m
8990
# Only upload coverage report for python3.7 && pytorch1.5
9091
- name: Upload coverage to Codecov
91-
if: ${{matrix.torch == '1.5.0+cu101' && matrix.python-version == '3.7'}}
92+
if: ${{matrix.torch == '1.8.0+cu101' && matrix.python-version == '3.7'}}
9293
uses: codecov/[email protected]
9394
with:
9495
file: ./coverage.xml

0 commit comments

Comments
 (0)