Skip to content

Commit

Permalink
feat: add workflow to verify notebooks (#1444)
Browse files Browse the repository at this point in the history
  • Loading branch information
esolitos authored Aug 21, 2024
1 parent 84119dc commit 9573b6d
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/verify-notebooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Verify Notebooks

on:
push:
branches:
- master
paths:
- ".github/workflows/verify-notebooks.yml"
- "examples/model-deployment/"
- "text-image-search/"
pull_request:
branches:
- master
paths:
- ".github/workflows/verify-notebooks.yml"
- "examples/model-deployment/"
- "text-image-search/"

defaults:
run:
# Specify to ensure "pipefail and errexit" are set.
# Ref: https://docs.github.com/en/actions/writing-workflows/workflow-syntax-for-github-actions#defaultsrunshell
shell: bash

jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- name: Install dependencies
run: |
pip install --upgrade -qqq pytest notebook nbconvert runnb pandas torch numpy scikit-learn
- name: Run Notebooks
working-directory: examples/model-deployment
run: |
runnb --allow-not-trusted ONNXModelExport.ipynb

0 comments on commit 9573b6d

Please sign in to comment.