Skip to content

Setting up github workflow to test notebooks #14

Setting up github workflow to test notebooks

Setting up github workflow to test notebooks #14

Workflow file for this run

name: Tests
on:
pull_request:
branches: [main]
jobs:
build-and-test:
runs-on: ubuntu-latest
steps:
- name: Checkout PySIDT
uses: actions/checkout@v4
- name: Clone ReactionMechanismGenerator/molecule
run: |
cd ..
git clone https://github.com/ReactionMechanismGenerator/molecule.git
- name: Create molecule environment
uses: conda-incubator/setup-miniconda@v3
with:
environment-file: ../molecule/environment.yml
miniforge-variant: Mambaforge
miniforge-version: latest
python-version: 3.7
activate-environment: rmg_env
use-mamba: true
- name: Install molecule
run: |
cd ../molecule
python -m pip install -e .
- name: Test PySIDT notebooks
run: |
pytest --nbmake IPython/multi_eval_SIDT_example.ipynb