-
Notifications
You must be signed in to change notification settings - Fork 26
40 lines (37 loc) · 945 Bytes
/
macos.yml
File metadata and controls
40 lines (37 loc) · 945 Bytes
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
name: macos
on:
push:
branches:
- master
pull_request:
branches:
- master
schedule:
- cron: "0 4 * * *"
jobs:
test_mac:
runs-on: ${{ matrix.os }}
strategy:
max-parallel: 4
matrix:
os: [macOS-latest]
python-version: [3.6]
steps:
- uses: actions/checkout@v1
- uses: goanpeca/setup-miniconda@v1
with:
miniconda-version: 'latest'
auto-activate-base: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0}
run: |
conda install pytorch>=1.0.0 -q
pip install -e .[develop] --progress-bar off
pip install sphinx==2.4.4
pip install m2r
git config --global credential.interactive never
git config --global credential.modalprompt false
- name: Test with pytest
shell: bash -l {0}
run: GIT_TERMINAL_PROMPT=0 pytest tests