Skip to content

Commit

Permalink
[Fix] Remove testing on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
fanqiNO1 committed Nov 20, 2023
1 parent d6567aa commit ae09670
Showing 1 changed file with 42 additions and 42 deletions.
84 changes: 42 additions & 42 deletions .github/workflows/merge_stage_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ae09670

Please sign in to comment.