marimo-learn / .github /workflows /check-empty-cells.yml
Haleshot's picture
Add GitHub workflow to check for empty cells in marimo notebooks
4aec921 unverified
raw
history blame contribute delete
926 Bytes
name: Check for Empty Cells
on:
pull_request:
branches: [main]
paths:
- '**/*.py'
jobs:
check-empty-cells:
name: Check for empty cells in marimo notebooks
runs-on: ubuntu-latest
steps:
- name: πŸ›‘ Cancel Previous Runs
uses: styfle/[email protected]
- name: πŸ”„ Checkout code
uses: actions/checkout@v4
- name: 🐍 Set up Python
uses: actions/setup-python@v5
with:
python-version: 3.12
- name: πŸ” Check for empty cells
run: |
python scripts/check_empty_cells.py
- name: πŸ“Š Report results
if: failure()
run: |
echo "❌ Empty cells found in marimo notebooks!"
echo "Please remove or add content to empty cells before merging."
echo "Empty cells look like:"
echo "@app.cell"
echo "def _():"
echo " return"