feat: add workflow to verify notebooks #1
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
- uses: actions/setup-python@v5 | |
with: | |
cache: "pip" | |
- name: Run Notebooks | |
working-directory: examples/model-deployment | |
run: | | |
runnb --allow-not-trusted ONNXModelExport.ipynb |