From 6d096d92cb6c18cee675826717f1b944ac26c78b Mon Sep 17 00:00:00 2001 From: plyfager <2744335995@qq.com> Date: Wed, 23 Feb 2022 19:39:58 +0800 Subject: [PATCH 1/2] add windows-ci --- .github/workflows/build.yml | 36 ++++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fdc9fa98a..a2338f896 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -146,3 +146,39 @@ jobs: env_vars: OS,PYTHON name: codecov-umbrella fail_ci_if_error: false + + test_windows: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [windows-2022] + python: [3.8] + platform: [cpu, cu111] + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: Upgrade pip + run: pip install pip --upgrade --user + - name: Install PyTorch + # As a complement to Linux CI, we test on PyTorch LTS version + run: pip install torch==1.8.2+${{ matrix.platform }} torchvision==0.9.2+${{ matrix.platform }} -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html + - name: Install MMCV + run: pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.8/index.html --only-binary mmcv-full + - name: Install FaceXLib (with opencv <= 4.5.4.60) + run: pip install facexlib "opencv-python<=4.5.4.60" + - name: Install unittest dependencies + run: pip install -r requirements.txt + - name: Show pip list + run: pip list + - name: Build and install + run: pip install -e . + - name: Run unittests + run: coverage run --branch --source mmedit -m pytest tests -sv + - name: Generate coverage report + run: | + coverage xml + coverage report -m + - name: Upload coverage to Codecov From df0f33439470529c058e8b6522900db086fef363 Mon Sep 17 00:00:00 2001 From: plyfager <2744335995@qq.com> Date: Wed, 23 Feb 2022 20:07:56 +0800 Subject: [PATCH 2/2] remove facexlib --- .github/workflows/build.yml | 2 -- 1 file changed, 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index a2338f896..0d03743e0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -167,8 +167,6 @@ jobs: run: pip install torch==1.8.2+${{ matrix.platform }} torchvision==0.9.2+${{ matrix.platform }} -f https://download.pytorch.org/whl/lts/1.8/torch_lts.html - name: Install MMCV run: pip install mmcv-full -f https://download.openmmlab.com/mmcv/dist/cpu/torch1.8/index.html --only-binary mmcv-full - - name: Install FaceXLib (with opencv <= 4.5.4.60) - run: pip install facexlib "opencv-python<=4.5.4.60" - name: Install unittest dependencies run: pip install -r requirements.txt - name: Show pip list