-
Notifications
You must be signed in to change notification settings - Fork 2
42 lines (38 loc) · 1.25 KB
/
macos.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
on:
push:
branches:
- main
pull_request:
branches:
- main
name: macOS build
jobs:
test-macOS:
runs-on: ${{ matrix.os }}
name: ${{ matrix.os }} (${{ matrix.python-version}})
strategy:
fail-fast: false
matrix:
os: ["macOS-latest"]
python-version: ["3.10","3.11"]
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
lfs: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version}}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install --user -r requirements_dev.txt
- name: Test with pytest
run: |
python -m unittest discover test/
python -m pytest test/
- name: Train example
run: |
python train.py --data_name cifar10 --model iglvq --train_norm lpips-l2 --test_norm l1 --feature_extraction --prune --prune_mode easy --prune_fraction 0.8