Skip to content

test: run every script in smoke, not a 10-of-15 allowlist #105

test: run every script in smoke, not a 10-of-15 allowlist

test: run every script in smoke, not a 10-of-15 allowlist #105

name: Tutorials Complete
# Guards against tutorial scripts being truncated / cut off mid-generation (a
# long file re-emitted with the output severed, losing every section below the
# cut). Each tutorial_*.py must end with a `__Wrap Up__` (or `__Summary__`)
# terminal section; the check is pure-stdlib and needs no library install.
# See scripts/check_tutorials_complete.py.
# One run per commit: PR events carry the CI; pushes only build main
# (Heart's ws_ci gate reads main-HEAD conclusions). Superseded runs are
# cancelled on PR refs only — a cancelled main run would read as red CI
# (cancelled is in Heart's FAILURE_CONCLUSIONS).
on:
push:
branches: [main]
pull_request:
concurrency:
group: tutorials_complete-${{ github.ref }}
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
jobs:
tutorials-complete:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: Check tutorials are not truncated
run: python .github/scripts/check_tutorials_complete.py .