Skip to content

Commit 0aa8453

Browse files
esolitosgitbutler-client
authored andcommitted
feat: add workflow to verify notebooks
1 parent 6a85152 commit 0aa8453

File tree

1 file changed

+42
-0
lines changed

1 file changed

+42
-0
lines changed
+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
name: Verify Notebooks
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
paths:
8+
- ".github/workflows/verify-notebooks.yml"
9+
- "examples/model-deployment/"
10+
- "text-image-search/"
11+
pull_request:
12+
branches:
13+
- master
14+
paths:
15+
- ".github/workflows/verify-notebooks.yml"
16+
- "examples/model-deployment/"
17+
- "text-image-search/"
18+
19+
defaults:
20+
run:
21+
# Specify to ensure "pipefail and errexit" are set.
22+
# Ref: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#defaultsrunshell
23+
shell: bash
24+
25+
jobs:
26+
test:
27+
runs-on: ubuntu-latest
28+
steps:
29+
- uses: actions/checkout@v4
30+
31+
- uses: actions/setup-python@v5
32+
with:
33+
cache: "pip"
34+
35+
- name: Install dependencies
36+
run: |
37+
python -m pip install --upgrade -qqq pytest notebook nbconvert runnb pandas torch numpy scikit-learn
38+
39+
- name: Run Notebooks
40+
working-directory: examples/model-deployment
41+
run: |
42+
runnb --allow-not-trusted ONNXModelExport.ipynb

0 commit comments

Comments
 (0)