Skip to content

Commit

Permalink
Update CI workflow (#69)
Browse files Browse the repository at this point in the history
* fix typos

* fix typos

* fix typos

* fix typos

* update workflow
  • Loading branch information
OceanPang authored Jan 5, 2021
1 parent 3ceb8e4 commit 7bcdd9e
Showing 1 changed file with 21 additions and 18 deletions.
39 changes: 21 additions & 18 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,17 @@ jobs:
strategy:
matrix:
python-version: [3.7]
torch: [1.3.0, 1.5.0, 1.6.0]
torch: [1.3.1, 1.5.1, 1.7.1]
include:
- torch: 1.3.0
torchvision: 0.4.1
- torch: 1.5.0
torchvision: 0.6.0
- torch: 1.6.0
torchvision: 0.7.0
- torch: 1.3.1
torchvision: 0.4.2
mmcv: "latest+torch1.3.0+cpu"
- torch: 1.5.1
torchvision: 0.6.1
mmcv: "latest+torch1.5.0+cpu"
- torch: 1.7.1
torchvision: 0.8.2
mmcv: "latest+torch1.7.0+cpu"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -48,8 +51,8 @@ jobs:
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install mmtrack dependencies
run: |
pip install mmcv-full==latest+torch${{matrix.torch}}+cpu -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html --use-deprecated=legacy-resolver
pip install git+https://github.com/open-mmlab/mmdetection.git
pip install mmcv-full==${{matrix.mmcv}} -f https://download.openmmlab.com/mmcv/dist/index.html --use-deprecated=legacy-resolver
pip install mmdet
pip install -r requirements.txt
- name: Build and install
run: rm -rf .eggs && pip install -e .
Expand All @@ -69,23 +72,23 @@ jobs:
strategy:
matrix:
python-version: [3.7]
torch: [1.3.1, 1.5.1+cu101, 1.6.0+cu101]
torch: [1.3.1, 1.5.1+cu101, 1.7.1+cu101]
include:
- torch: 1.3.1
torchvision: 0.4.2
mmcv: "latest+torch1.3.0+cu101"
- torch: 1.5.1+cu101
torchvision: 0.6.1+cu101
mmcv: "latest+torch1.5.0+cu101"
- torch: 1.6.0+cu101
torchvision: 0.7.0+cu101
- torch: 1.7.1+cu101
torchvision: 0.8.2+cu101
mmcv: "latest+torch1.6.0+cu101"
- torch: 1.6.0+cu101
torchvision: 0.7.0+cu101
- torch: 1.7.1+cu101
torchvision: 0.8.2+cu101
mmcv: "latest+torch1.6.0+cu101"
python-version: 3.6
- torch: 1.6.0+cu101
torchvision: 0.7.0+cu101
- torch: 1.7.1+cu101
torchvision: 0.8.2+cu101
mmcv: "latest+torch1.6.0+cu101"
python-version: 3.8

Expand Down Expand Up @@ -115,8 +118,8 @@ jobs:
run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
- name: Install mmtrack dependencies
run: |
pip install mmcv-full==${{matrix.mmcv}} -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html --use-deprecated=legacy-resolver
pip install git+https://github.com/open-mmlab/mmdetection.git
pip install mmcv-full==${{matrix.mmcv}} -f https://download.openmmlab.com/mmcv/dist/index.html --use-deprecated=legacy-resolver
pip install mmdet
pip install -r requirements.txt
- name: Build and install
run: |
Expand Down

0 comments on commit 7bcdd9e

Please sign in to comment.