[Fix] Update pip install mmcv command in ci (#187)
* update pip install mmcv command in ci * update pip install mmcv command in ci * fix ci * fix cipull/194/head
parent
b507fc207b
commit
d412841e08
|
@ -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:
|
||||
|
@ -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: |
|
||||
|
@ -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/codecov-action@v1.0.10
|
||||
with:
|
||||
file: ./coverage.xml
|
||||
|
|
Loading…
Reference in New Issue