-
Notifications
You must be signed in to change notification settings - Fork 150
38 lines (38 loc) · 1.13 KB
/
notebook_runner.yml
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
name: Notebooks
on:
pull_request:
branches:
- master
jobs:
run_notebooks:
name: Notebook runner
strategy:
matrix:
os: ["ubuntu-latest"]
python-version: ["3.8"]
fail-fast: false
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install
run: |
pip install -r requirements.txt
pip install -r dev_requirements.txt
pip install -r notebook_requirements.txt
pip install .
ipython kernel install --name "python3" --user
- name: Run notebooks
run: |
python -m allensdk.internal.notebooks.execute_notebooks \
--notebooks_dir doc_template/examples_root/examples/nb \
--skip_notebooks behavior_ophys_session.ipynb
- name: Commit and push updated notebooks
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: Update notebooks
push_options: --force
file_pattern: '*.ipynb'