Skip to content

Commit

Permalink
Merge pull request #173 from nbei/fix-build
Browse files Browse the repository at this point in the history
[Bug] fix pip install bug
  • Loading branch information
nbei authored Dec 22, 2020
2 parents d4086aa + 247429f commit dd222d3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,17 @@ jobs:
strategy:
matrix:
python-version: [3.7]
torch: [1.3.0, 1.4.0, 1.5.0, 1.6.0]
torch: [1.3.1, 1.5.1, 1.6.0]
include:
- torch: 1.3.0
- torch: 1.3.1
torchvision: 0.4.2
- torch: 1.4.0
torchvision: 0.5.0
- torch: 1.5.0
mmcv: "latest+torch1.3.0+cpu"
- torch: 1.5.1
torchvision: 0.6.1
mmcv: "latest+torch1.5.0+cpu"
- torch: 1.6.0
torchvision: 0.7.0
mmcv: "latest+torch1.6.0+cpu"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
Expand All @@ -49,7 +50,7 @@ jobs:
- name: Install PyTorch
run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html
- name: Install MMCV
run: pip install mmcv-full==latest+torch${{matrix.torch}}+cpu -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html
run: pip install --use-deprecated=legacy-resolver mmcv-full==${{matrix.mmcv}} -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html
- name: Install unittest dependencies
run: pip install -r requirements/tests.txt
- name: Build and install
Expand Down Expand Up @@ -116,7 +117,7 @@ jobs:
run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} -f https://download.pytorch.org/whl/torch_stable.html
- name: Install mmediting dependencies
run: |
pip install mmcv-full==${{matrix.mmcv}} -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html
pip install --use-deprecated=legacy-resolver mmcv-full==${{matrix.mmcv}} -f https://openmmlab.oss-accelerate.aliyuncs.com/mmcv/dist/index.html
pip install -r requirements.txt
- name: Build and install
run: |
Expand Down

0 comments on commit dd222d3

Please sign in to comment.