Skip to content

Checking notebook quality with Pynblint when project notebook changes #15

Checking notebook quality with Pynblint when project notebook changes

Checking notebook quality with Pynblint when project notebook changes #15

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