-
Notifications
You must be signed in to change notification settings - Fork 10
56 lines (45 loc) · 1.11 KB
/
scallopy.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
name: Scallopy
on:
push:
branches: [ master ]
paths:
- "**.py"
- "**.rs"
pull_request:
branches: [ master ]
paths:
- "**.py"
- "**.rs"
env:
SCALLOPDIR: ${{ github.workspace }}
jobs:
build-and-test:
name: Build and Test
runs-on: ubuntu-latest
strategy:
max-parallel: 5
matrix:
python-version:
- "3.8"
- "3.9"
- "3.10"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Add conda to system path
run: echo $CONDA/bin >> $GITHUB_PATH
- name: Install PyTorch
run: conda install pytorch::pytorch torchvision torchaudio -c pytorch
- name: Install other dependencies
run: conda install maturin tqdm
- name: Setup rustup toolchain
run: |
rustup update nightly
rustup default nightly
- name: Install scallopy
run: make install-scallopy
- name: Test
run: python3 etc/scallopy/tests/test.py