-
Notifications
You must be signed in to change notification settings - Fork 11
93 lines (86 loc) · 2.37 KB
/
ci.yml
File metadata and controls
93 lines (86 loc) · 2.37 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
name: "Tests"
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
- cron: "0 0 * * 0"
defaults:
run:
shell: bash -l {0}
jobs:
intro-tutorial:
runs-on: ubuntu-latest
name: "Intro tutorial"
strategy:
matrix:
CONDA_PY:
- "3.12"
- "3.11"
- "3.10"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.CONDA_PY }}
environment-file: binder/environment.yml
activate-environment: ops-tutorial
miniforge-version: latest
- name: "Install testing tools"
run: python -m pip install pytest nbval
- name: "Conda info"
run: |
conda info
conda list
- name: "Patch answers"
run: source devtools/patch-all
- name: "Download data"
run: source devtools/download-files
- name: "Run tests"
run: |
pytest --nbval-lax \
1_tps_sampling_tutorial.ipynb \
2_tps_analysis_tutorial.ipynb \
3_committor_analysis_tutorial.ipynb \
4_mstis_sampling_tutorial.ipynb
advanced-tutorial:
runs-on: ubuntu-latest
name: "Advanced tutorial"
strategy:
matrix:
CONDA_PY:
- "3.12"
- "3.11"
- "3.10"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.CONDA_PY }}
environment-file: binder/environment.yml
activate-environment: ops-tutorial
miniforge-version: latest
- name: "Install testing tools"
run: python -m pip install pytest nbval
- name: "Conda info"
run: |
conda info
conda list
- name: "Patch answers"
run: source devtools/patch-all
- name: "Run tests"
run: |
pytest -v --durations=0 --nbval-lax 5_custom_shooting_setup.ipynb
source devtools/run5.sh
pytest --nbval-lax \
6_custom_shooting_analysis.ipynb \
7_parallel_tis_setup.ipynb
source devtools/run7.sh
pytest --nbval-lax 8_parallel_tis_analysis.ipynb