Skip to content

Commit

Permalink
[Improvement] Add more CI (#460)
Browse files Browse the repository at this point in the history
* add more CI

* fix missing

* remove python-version

* fixed acc
  • Loading branch information
xvjiarui authored Apr 9, 2021
1 parent 0df07ab commit a897a34
Show file tree
Hide file tree
Showing 3 changed files with 1,068 additions and 1,067 deletions.
23 changes: 12 additions & 11 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: build

on: [push, pull_request]
on: [ push, pull_request ]

jobs:
lint:
Expand Down Expand Up @@ -29,25 +29,26 @@ jobs:
UBUNTU_VERSION: ubuntu1804
FORCE_CUDA: 1
MMCV_CUDA_ARGS: -gencode=arch=compute_61,code=sm_61
runs-on: ubuntu-latest
runs-on: ubuntu-18.04
strategy:
matrix:
python-version: [3.6, 3.7]
torch: [1.3.0+cpu, 1.5.0+cpu]
python-version: [ 3.6, 3.7 ]
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 ]
include:
- torch: 1.3.0+cpu
torchvision: 0.4.1+cpu
- torch: 1.5.0+cpu
torchvision: 0.6.0+cpu
- torch: 1.5.0+cpu
torchvision: 0.6.0+cpu
python-version: 3.8
- torch: 1.5.0+cu101
torchvision: 0.6.0+cu101
python-version: 3.7
- torch: 1.6.0+cu101
torchvision: 0.7.0+cu101
python-version: 3.7
- torch: 1.7.0+cu101
torchvision: 0.8.1+cu101
- torch: 1.8.0+cu101
torchvision: 0.9.0+cu101
- torch: 1.8.0+cu101
torchvision: 0.9.0+cu101

steps:
- uses: actions/checkout@v2
Expand All @@ -56,7 +57,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install CUDA
if: ${{matrix.torch == '1.5.0+cu101'}}
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'}}
run: |
export INSTALLER=cuda-repo-${UBUNTU_VERSION}_${CUDA}_amd64.deb
wget http://developer.download.nvidia.com/compute/cuda/repos/${UBUNTU_VERSION}/x86_64/${INSTALLER}
Expand Down Expand Up @@ -88,7 +89,7 @@ jobs:
coverage report -m
# Only upload coverage report for python3.7 && pytorch1.5
- name: Upload coverage to Codecov
if: ${{matrix.torch == '1.5.0+cu101' && matrix.python-version == '3.7'}}
if: ${{matrix.torch == '1.8.0+cu101' && matrix.python-version == '3.7'}}
uses: codecov/codecov-action@v1.0.10
with:
file: ./coverage.xml
Expand Down
Loading

0 comments on commit a897a34

Please sign in to comment.