Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add workflow to verify notebooks #1444

Merged
merged 1 commit into from
Aug 21, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

runnb is obscure package, better to use something better known and supported.
For pyvespa, we use papermill to run notebooks:
https://github.com/vespa-engine/pyvespa/blob/master/.github/workflows/notebooks-cloud.yml

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't know neither of the two, so my opinion is void. 😊

@glebashnik perhaps make it a ticket in JIRA so it can be evaulated?


- name: Run Notebooks
working-directory: examples/model-deployment
run: |
runnb --allow-not-trusted ONNXModelExport.ipynb