-
Notifications
You must be signed in to change notification settings - Fork 11
54 lines (47 loc) · 1.19 KB
/
test.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
name: build
on:
schedule:
- cron: "0 12 * * 1"
push:
branches:
- master
pull_request:
branches:
- master
jobs:
build:
if: "!contains(github.event.head_commit.message, 'ci skip')"
runs-on: ${{ matrix.os }}
timeout-minutes: 30
strategy:
max-parallel: 4
matrix:
os: [macos-latest, ubuntu-latest]
python-version: ['3.9']
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
submodules: 'true'
- name: Set up miniconda
uses: conda-incubator/setup-miniconda@v2
with:
miniconda-version: "latest"
auto-update-conda: true
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -l {0}
run: |
conda install gsl h5py numba
pip install pytest numpy nbconvert ipykernel
pip install NRSur7dq2
conda config --add channels conda-forge
conda install qnm sxs
- name: Install pipenv
shell: bash -l {0}
run: |
pip install .
- name: Run test suite
shell: bash -l {0}
run: |
py.test