From e9dbe708336712e7d210d74f7a78939d47301f22 Mon Sep 17 00:00:00 2001 From: zhouzaida Date: Thu, 23 Jun 2022 15:48:16 +0800 Subject: [PATCH 1/2] Fix Windows CI --- .github/workflows/build.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c35d285..2af2c0a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -118,9 +118,10 @@ jobs: run: python -c "import mim" - name: Install unittest dependencies run: pip install -r requirements/tests.txt - - name: Run unittests and generate coverage report + - name: Run unittests + run: coverage run --branch --source=mim -m pytest tests/ + - name: Generate coverage report run: | - coverage run --branch --source=mim -m pytest tests/ coverage xml coverage report -m - name: Upload coverage to Codecov From c39e6410115ed06d6a48e1e10d44d0e4d540f1c8 Mon Sep 17 00:00:00 2001 From: zhouzaida Date: Thu, 23 Jun 2022 16:12:45 +0800 Subject: [PATCH 2/2] remove unused commands from CI --- .github/workflows/build.yml | 4 ---- 1 file changed, 4 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 2af2c0a..07c2344 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -106,10 +106,6 @@ jobs: uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Upgrade setuptools - run: pip install --upgrade setuptools - - name: Install wheel # wheel is the default package of local environment but docker environment misses the package so we manually install it - run: pip install wheel - name: Install PyTorch run: pip install torch==${{matrix.torch}}+cpu torchvision==${{matrix.torchvision}}+cpu -f https://download.pytorch.org/whl/torch_stable.html - name: Build and install