Skip to content

Commit

Permalink
[CI] Fix GitHub windows CI (#1320)
Browse files Browse the repository at this point in the history
* add 'python -m' to windows' workflow
  • Loading branch information
LeoXing1996 committed Oct 17, 2022
1 parent f33a09d commit 97d74d8
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/merge_stage_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -165,20 +165,20 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade
run: python -m pip install pip --upgrade
- name: Install lmdb
run: pip install lmdb
run: python -m pip install lmdb
- name: Install PyTorch
run: pip install torch==1.8.1+${{matrix.platform}} torchvision==0.9.1+${{matrix.platform}} -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
run: python -m pip install torch==1.8.1+${{matrix.platform}} torchvision==0.9.1+${{matrix.platform}} -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
- name: Install mmediting dependencies
run: |
pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim
python -m pip install git+https://github.com/open-mmlab/mmengine.git@main
python -m pip install -U openmim
mim install 'mmcv >= 2.0.0rc1'
pip install -r requirements/tests.txt
python -m pip install -r requirements/tests.txt
- name: Build and install
run: |
pip install -e .
python -m pip install -e .
- name: Run unittests and generate coverage report
run: |
pytest tests/
14 changes: 7 additions & 7 deletions .github/workflows/pr_stage_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -116,20 +116,20 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: pip install pip --upgrade
run: python -m pip install pip --upgrade
- name: Install lmdb
run: pip install lmdb
run: python -m pip install lmdb
- name: Install PyTorch
run: pip install torch==1.8.1+${{matrix.platform}} torchvision==0.9.1+${{matrix.platform}} -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
run: python -m pip install torch==1.8.1+${{matrix.platform}} torchvision==0.9.1+${{matrix.platform}} -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html
- name: Install mmedit dependencies
run: |
pip install git+https://github.com/open-mmlab/mmengine.git@main
pip install -U openmim
python -m pip install git+https://github.com/open-mmlab/mmengine.git@main
python -m pip install -U openmim
mim install 'mmcv >= 2.0.0rc1'
pip install -r requirements/tests.txt
python -m pip install -r requirements/tests.txt
- name: Build and install
run: |
pip install -e .
python -m pip install -e .
- name: Run unittests and generate coverage report
run: |
pytest tests/
Expand Down

0 comments on commit 97d74d8

Please sign in to comment.