openai-cookbook/.github/workflows/validate-notebooks.yaml
2025-04-28 03:33:02 -07:00

26 lines
566 B
YAML

name: Validate Changed Notebooks
on: [pull_request]
jobs:
validate-notebooks:
name: Validate Notebooks
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # needed for git diff to work
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.12'
- name: Install dependencies
run: pip install nbformat
- name: Validate changed .ipynb files
run: python .github/scripts/check_notebooks.py