From c57a48b8305b8f46250410db823127cecd7bbf90 Mon Sep 17 00:00:00 2001 From: ly015 Date: Fri, 11 Nov 2022 15:54:38 +0800 Subject: [PATCH] fix windows ci --- .github/workflows/pr_stage_test.yml | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/pr_stage_test.yml b/.github/workflows/pr_stage_test.yml index a7faf3a1f1..2249b95bc4 100644 --- a/.github/workflows/pr_stage_test.yml +++ b/.github/workflows/pr_stage_test.yml @@ -120,24 +120,24 @@ 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 mmpose dependencies run: | - pip install -U numpy - pip install git+https://github.com/open-mmlab/mmengine.git@main - pip install -U openmim + python -m pip install -U numpy + 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 git+https://github.com/open-mmlab/mmdetection.git@dev-3.x - pip install -r requirements/tests.txt - pip install -r requirements/albu.txt - pip install -r requirements/poseval.txt + python -m pip install git+https://github.com/open-mmlab/mmdetection.git@dev-3.x + python -m pip install -r requirements/tests.txt + python -m pip install -r requirements/albu.txt + python -m pip install -r requirements/poseval.txt - name: Build and install run: | - pip install -e . + python -m pip install -e . - name: Run unittests and generate coverage report run: | pytest tests/