-
Notifications
You must be signed in to change notification settings - Fork 2
41 lines (39 loc) · 1.04 KB
/
tests.yml
File metadata and controls
41 lines (39 loc) · 1.04 KB
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
name: "Test Suite"
on:
pull_request:
branches:
- master
push:
branches:
- master
schedule:
- cron: "0 4 * * *"
defaults:
run:
shell: bash -l {0}
jobs:
tests:
runs-on: ubuntu-latest
name: "Notebook tests"
strategy:
matrix:
CONDA_PY:
- "3.10"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.CONDA_PY }}
miniforge-version: latest
- name: "Install"
run: |
curl -OLk https://raw.githubusercontent.com/openpathsampling/openpathsampling/master/devtools/conda_ops_dev_install.sh
source ./conda_ops_dev_install.sh
mamba install -y -q -c conda-forge curl unzip matplotlib pytest nbval
- name: "Versions"
run: conda list
- name: "Tests"
run: |
NOTEBOOKS=`python devtools/select_notebooks.py --skip-file devtools/skip`
source ./devtools/run_tests.sh $NOTEBOOKS