Checking notebook quality with Pynblint when project notebook changes #15
This file contains 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: Pynblint Notebook Quality Check | |
run-name: Checking notebook quality with Pynblint when project notebook changes | |
on: | |
push: | |
paths: | |
- 'notebooks/**' | |
jobs: | |
pynblint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.11' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install pynblint | |
if [ -f requirements-dev.txt ]; then pip install -r requirements-dev.txt; fi | |
- name: Run Pynblint | |
run: | | |
pynblint 'notebooks/1.0-mp-initial-data-exploration.ipynb' -o pynblint_report.json | |
- name: Upload Pynblint Report | |
uses: actions/upload-artifact@v3 | |
with: | |
name: pynblint-report | |
path: pynblint_report.json |