Skip to content

Commit ee88b36

Browse files
committed
Add action to test run demo notebooks
1 parent 9272ae3 commit ee88b36

1 file changed

Lines changed: 48 additions & 0 deletions

File tree

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Test demo notebooks
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
paths:
8+
- "demo/**"
9+
- ".github/workflows/test-demo-notebooks.yml"
10+
pull_request:
11+
paths:
12+
- "demo/**"
13+
- ".github/workflows/test-demo-notebooks.yml"
14+
workflow_dispatch:
15+
16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
18+
cancel-in-progress: true
19+
20+
permissions: {}
21+
22+
jobs:
23+
test-notebook:
24+
name: Execute demo notebooks (${{ matrix.os }}, py${{ matrix.python-version }})
25+
runs-on: ${{ matrix.os }}
26+
timeout-minutes: 10
27+
strategy:
28+
fail-fast: false
29+
matrix:
30+
os: [ubuntu-latest, windows-latest]
31+
python-version: ["3.10", "3.14"]
32+
steps:
33+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
34+
with:
35+
persist-credentials: false
36+
37+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
38+
with:
39+
python-version: ${{ matrix.python-version }}
40+
41+
- name: Install dependencies
42+
run: pip install -r demo/requirements.in
43+
44+
- name: Execute notebook
45+
run: >
46+
jupyter nbconvert --to notebook --execute
47+
--ExecutePreprocessor.timeout=300
48+
demo/explore-voc4cat.ipynb

0 commit comments

Comments
 (0)