mirror of
https://github.com/open-mmlab/mim.git
synced 2025-06-03 14:59:11 +08:00
Add macOS ci (#138)
This commit is contained in:
parent
3276085565
commit
d2df7c8023
28
.github/workflows/build.yml
vendored
28
.github/workflows/build.yml
vendored
@ -89,6 +89,7 @@ jobs:
|
|||||||
env_vars: OS,PYTHON
|
env_vars: OS,PYTHON
|
||||||
name: codecov-umbrella
|
name: codecov-umbrella
|
||||||
fail_ci_if_error: false
|
fail_ci_if_error: false
|
||||||
|
|
||||||
test_windows:
|
test_windows:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
strategy:
|
strategy:
|
||||||
@ -131,3 +132,30 @@ jobs:
|
|||||||
env_vars: OS,PYTHON
|
env_vars: OS,PYTHON
|
||||||
name: codecov-umbrella
|
name: codecov-umbrella
|
||||||
fail_ci_if_error: false
|
fail_ci_if_error: false
|
||||||
|
|
||||||
|
test_macos:
|
||||||
|
runs-on: macos-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
torch: [1.8.0, 1.9.0]
|
||||||
|
include:
|
||||||
|
- torch: 1.8.0
|
||||||
|
torchvision: 0.9.0
|
||||||
|
- torch: 1.9.0
|
||||||
|
torchvision: 0.10.0
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python 3.7
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: 3.7
|
||||||
|
- name: Install PyTorch
|
||||||
|
run: pip install torch==${{matrix.torch}} torchvision==${{matrix.torchvision}} --no-cache-dir
|
||||||
|
- name: Build and install
|
||||||
|
run: pip install -e .
|
||||||
|
- name: Validate the installation
|
||||||
|
run: python -c "import mim"
|
||||||
|
- name: Install unittest dependencies
|
||||||
|
run: pip install -r requirements/tests.txt
|
||||||
|
- name: Run unittests
|
||||||
|
run: pytest tests/
|
||||||
|
Loading…
x
Reference in New Issue
Block a user