Setting up github workflow to test notebooks #14
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |