-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[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 ci
- Loading branch information
Showing
1 changed file
with
14 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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/[email protected] | ||
with: | ||
file: ./coverage.xml | ||
|