Add PR action to validate notebook format #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |