-
Notifications
You must be signed in to change notification settings - Fork 1
38 lines (31 loc) · 869 Bytes
/
Copy pathnotebook-ci.yml
File metadata and controls
38 lines (31 loc) · 869 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
name: Notebook CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
execute-notebook:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.10]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: |
pip install -r requirements.txt
pip install jupyter
- name: Execute combined notebook
run: |
mkdir -p executed_notebooks
jupyter nbconvert --to notebook --execute notebook/Notebook.ipynb \
--ExecutePreprocessor.timeout=600 \
--output executed_notebooks/executed-Notebook.ipynb