mirror of
https://github.com/OpenFreeEnergy/openfe.git
synced 2026-06-04 14:14:22 +08:00
* making some language clearer on github-facing things * : * add pre-commit link * clean up
52 lines
1.2 KiB
YAML
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
|