Files
openfe/.github/workflows/test-example-notebooks.yaml
Alyssa Travitz fa282cb8ea making some language clearer on github-facing things (#1758)
* making some language clearer on github-facing things

* :

* add pre-commit link

* clean up
2026-01-09 17:06:55 +00:00

52 lines
1.2 KiB
YAML

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