Skip to content

Commit

Permalink
[Fix] Update pip install mmcv command in ci (#187)
Browse files Browse the repository at this point in the history
* update pip install mmcv command in ci

* update pip install mmcv command in ci

* fix ci

* fix ci
  • Loading branch information
LXXXXR authored Mar 29, 2021
1 parent b507fc2 commit d412841
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ jobs:
strategy:
matrix:
python-version: [3.7]
torch: [1.3.0+cpu, 1.5.0+cpu, 1.6.0+cpu]
torch: [1.3.0, 1.5.0, 1.6.0]
include:
- torch: 1.3.0+cpu
torchvision: 0.4.2+cpu
- torch: 1.5.0+cpu
torchvision: 0.6.0+cpu
- torch: 1.6.0+cpu
torchvision: 0.7.0+cpu
- torch: 1.6.0+cpu
torchvision: 0.7.0+cpu
- torch: 1.3.0
torchvision: 0.4.2
- torch: 1.5.0
torchvision: 0.6.0
- torch: 1.6.0
torchvision: 0.7.0
- torch: 1.6.0
torchvision: 0.7.0
python-version: 3.6
- torch: 1.6.0+cpu
torchvision: 0.7.0+cpu
- torch: 1.6.0
torchvision: 0.7.0
python-version: 3.8

steps:
Expand All @@ -53,10 +53,10 @@ jobs:
run: pip install Pillow==6.2.2
if: ${{matrix.torchvision < 0.5}}
- name: Install PyTorch
run: pip install --use-deprecated=legacy-resolver torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
run: pip install --use-deprecated=legacy-resolver torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install MMCV
run: |
pip install --use-deprecated=legacy-resolver mmcv-full==latest+torch${{matrix.torch}} -f https://download.openmmlab.com/mmcv/dist/index.html
pip install --use-deprecated=legacy-resolver mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch${{matrix.torch}}/index.html
python -c 'import mmcv; print(mmcv.__version__)'
- name: Install mmcls dependencies
run: |
Expand All @@ -72,7 +72,7 @@ jobs:
coverage report -m --omit="mmcls/utils/*","mmcls/apis/*"
# Only upload coverage report for python3.7 && pytorch1.5
- name: Upload coverage to Codecov
if: ${{matrix.torch == '1.5.0+cpu' && matrix.python-version == '3.7'}}
if: ${{matrix.torch == '1.5.0' && matrix.python-version == '3.7'}}
uses: codecov/[email protected]
with:
file: ./coverage.xml
Expand Down

0 comments on commit d412841

Please sign in to comment.