From ae096705244cdf66093bb07e6d4fb4900ff0b577 Mon Sep 17 00:00:00 2001 From: fanqiNO1 <1848839264@qq.com> Date: Mon, 20 Nov 2023 16:48:37 +0800 Subject: [PATCH] [Fix] Remove testing on macos --- .github/workflows/merge_stage_test.yml | 84 +++++++++++++------------- 1 file changed, 42 insertions(+), 42 deletions(-) diff --git a/.github/workflows/merge_stage_test.yml b/.github/workflows/merge_stage_test.yml index cce5829827..c5456e28ac 100644 --- a/.github/workflows/merge_stage_test.yml +++ b/.github/workflows/merge_stage_test.yml @@ -232,48 +232,48 @@ jobs: coverage xml coverage report -m - build_macos: - runs-on: macos-latest - strategy: - matrix: - python-version: [3.8] - torch: [1.6.0, 1.8.1, 1.13.0] - include: - - torch: 1.6.0 - torchvision: 0.7.0 - - torch: 1.8.1 - torchvision: 0.9.1 - - torch: 1.13.0 - torchvision: 0.14.0 - steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.7 - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - name: Upgrade pip - run: pip install pip --upgrade - - name: Upgrade wheel - run: pip install wheel --upgrade - - name: Install PyTorch - run: pip install torch==${{ matrix.torch }} torchvision==${{ matrix.torchvision }} - - name: Build MMEngine from source - run: pip install -e . -v - - name: Install unit tests dependencies - run: | - pip install -r requirements/tests.txt - - name: Install mmcv - run: | - pip install openmim - mim install mmcv - if: ${{ matrix.torch > '1.8.0' || matrix.torch == '1.8.0' }} - # Distributed-related unit tests may fail in macOS - # Skip testing setup_env since it does not work in the current CI environment # TODO - - name: Run unittests and generate coverage report - run: | - coverage run --branch --source mmengine -m pytest tests/ --ignore tests/test_dist/ --ignore tests/test_utils/test_dl_utils/test_setup_env.py - coverage xml - coverage report -m + # build_macos: + # runs-on: macos-latest + # strategy: + # matrix: + # python-version: [3.8] + # torch: [1.6.0, 1.8.1, 1.13.0] + # include: + # - torch: 1.6.0 + # torchvision: 0.7.0 + # - torch: 1.8.1 + # torchvision: 0.9.1 + # - torch: 1.13.0 + # torchvision: 0.14.0 + # steps: + # - uses: actions/checkout@v3 + # - name: Set up Python 3.7 + # uses: actions/setup-python@v4 + # with: + # python-version: ${{ matrix.python-version }} + # - name: Upgrade pip + # run: pip install pip --upgrade + # - name: Upgrade wheel + # run: pip install wheel --upgrade + # - name: Install PyTorch + # run: pip install torch==${{ matrix.torch }} torchvision==${{ matrix.torchvision }} + # - name: Build MMEngine from source + # run: pip install -e . -v + # - name: Install unit tests dependencies + # run: | + # pip install -r requirements/tests.txt + # - name: Install mmcv + # run: | + # pip install openmim + # mim install mmcv + # if: ${{ matrix.torch > '1.8.0' || matrix.torch == '1.8.0' }} + # # Distributed-related unit tests may fail in macOS + # # Skip testing setup_env since it does not work in the current CI environment # TODO + # - name: Run unittests and generate coverage report + # run: | + # coverage run --branch --source mmengine -m pytest tests/ --ignore tests/test_dist/ --ignore tests/test_utils/test_dl_utils/test_setup_env.py + # coverage xml + # coverage report -m build_windows: runs-on: windows-2022