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

[DNM] GH action to execute tutorials #2659

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
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/test_tutorials.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Execute Tutorial Notebooks

on:
push:
paths:
- 'docs/tutorials/**.ipynb'
- .github/workflows/tutorials.yml
pull_request:
branches:
- main
- test-tutorials
workflow_dispatch:

jobs:
test-notebooks:
runs-on: ubuntu-latest

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.12'

- name: Set up virtual environment
run: |
python -m venv env
source env/bin/activate
python -m pip install --upgrade pip
pip install docs/tutorials/requirements.txt
shell: bash

- name: Execute tutorial notebooks
run: |
jupyter execute docs/tutorials/*.ipynb
shell: bash
9 changes: 9 additions & 0 deletions docs/tutorials/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
jax
jaxlib
flax
transformers
torch_xla==2.5.0
torch==2.5.0
torchvision==0.20.0
tensorflow-cpu
jupyter
Loading