Skip to content

Commit 0f20e3e

Browse files
Create test_actions.yml
1 parent 145cddd commit 0f20e3e

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/test_actions.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Monthly Notebook Check
2+
3+
on:
4+
# schedule:
5+
# - cron: '0 8 1 * *' # Every month on the 1st at 08:00 UTC
6+
workflow_dispatch: # Allows manual run from GitHub UI
7+
8+
jobs:
9+
test-notebooks:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout Repo
14+
uses: actions/checkout@v3
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v4
18+
with:
19+
python-version: '3.10'
20+
21+
- name: Install dependencies
22+
run: |
23+
python -m pip install --upgrade pip
24+
pip install nbformat nbconvert jupyter ipykernel
25+
python -m ipykernel install --user --name=python3
26+
27+
- name: List notebook files
28+
run: ls -la notebooks
29+
30+
- name: Run notebook tests
31+
run: |
32+
set -e
33+
python tools/run_notebooks.py

0 commit comments

Comments
 (0)