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

run quickstart notebook on every commit #209

Merged
merged 1 commit into from
Sep 27, 2022
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
36 changes: 36 additions & 0 deletions .github/workflows/notebook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Run notebook

on:
push:
branches:
- main
pull_request:

jobs:
linux:
timeout-minutes: 30
runs-on: "ubuntu-22.04"
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
lfs: true
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.10"
- uses: ./.github/workflows/build_linux_wheel
with:
python-minor-version: "10"
- name: Pip install
working-directory: python
shell: bash
run: |
pip3 install torch torchvision --extra-index-url https://download.pytorch.org/whl/cpu
pip3 install jupyter
pip3 install $(ls wheels/pylance-*-cp3${{ inputs.python-minor-version}}*.whl)[test]
- name: Run python tests
shell: bash
working-directory: python/notebooks
run: |
jupyter nbconvert --to notebook --execute quickstart.ipynb