-
Notifications
You must be signed in to change notification settings - Fork 4
44 lines (34 loc) · 852 Bytes
/
ci.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
name: CI
on:
push:
branches:
- main
pull_request:
branches:
- "*"
jobs:
build:
runs-on: "ubuntu-latest"
defaults:
run:
shell: bash -l {0}
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Mamba
uses: mamba-org/setup-micromamba@v1
with:
environment-file: environment.yml
init-shell: bash
- name: Install Torch (CPU)
run: |
python -m pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
- name: Install Pip Requirements
run: |
python -m pip install -r requirements.txt
- name: Install DARTsort
run: |
python -m pip install -e .
- name: Pytest
run: |
python -m pytest tests/*