mirror of
https://github.com/james-m-jordan/openai-cookbook.git
synced 2025-05-09 19:32:38 +00:00
26 lines
566 B
YAML
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
|