Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
45 changes: 45 additions & 0 deletions .github/workflows/run.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Rerun the notebooks

on:
pull_request:
push:
branches:
- main
# Run this action manually (this file needs to be in the default branch)
workflow_dispatch:

jobs:
run-notebooks:
runs-on: ubuntu-latest
env:
PYTHON: "3.10"

# Use bash by default in all jobs
defaults:
run:
shell: bash -el {0}

steps:
- name: Checkout repo
uses: actions/checkout@v3

- name: Setup Miniconda
uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ env.PYTHON }}
activate-environment: simpeg-user-tutorial
environment-file: environment.yml
auto-activate-base: false

- name: List installed packages
run: |
conda info
conda list

- name: Run notebook
run: |
for notebook in notebooks/**/*.ipynb; do
echo "Running '$notebook'"
jupyter execute --inplace $notebook
done
13 changes: 13 additions & 0 deletions environment.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: simpeg-user-tutorials
channels:
- conda-forge
dependencies:
- python=3.10.*
# Myst requirements
- nodejs>=20,<21
- mystmd
# Notebook requirements
- jupyter
- SimPEG==0.20.*
- discretize==0.10.*
- pymatsolver