-
Notifications
You must be signed in to change notification settings - Fork 41
51 lines (41 loc) · 1.19 KB
/
test-example-notebooks.yaml
File metadata and controls
51 lines (41 loc) · 1.19 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
name: Test example notebooks
on:
workflow_dispatch:
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
test-example-notebooks:
runs-on: ubuntu-latest
steps:
- name: Checkout openfe repository
uses: actions/checkout@v4
with:
path: openfe
- name: Checkout example notebooks
uses: actions/checkout@v4
with:
repository: openfreeenergy/ExampleNotebooks
path: example-notebooks
- name: Setup Micromamba
uses: mamba-org/setup-micromamba@v2
with:
environment-file: openfe/environment.yml
environment-name: openfe_env
create-args: >-
python=3.12
nbval
init-shell: bash
- name: Install OpenFE
run: python -m pip install --no-deps -e ./openfe
- name: Environment Information
run: |
micromamba info
micromamba list
- name: Run example notebooks
run: |
cd example-notebooks
python -m pytest -v --nbval-lax --nbval-cell-timeout=3000 -n auto --dist loadscope