From d412841e08e925a0dae9ec87b29642fcc3678260 Mon Sep 17 00:00:00 2001 From: LXXXXR <73265258+LXXXXR@users.noreply.github.com> Date: Mon, 29 Mar 2021 19:57:27 +0800 Subject: [PATCH] [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 --- .github/workflows/build.yml | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 6a4c0f77e..fab8fe544 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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