-
Notifications
You must be signed in to change notification settings - Fork 3
45 lines (38 loc) · 1022 Bytes
/
run.yml
File metadata and controls
45 lines (38 loc) · 1022 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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