Skip to content

Add notebook smoke tests and rebuilt lectures - #2

Merged
lawrennd merged 1 commit into
gh-pagesfrom
add/notebook-smoke
Oct 26, 2026
Merged

lawrennd merged 1 commit into
gh-pagesfrom
add/notebook-smoke

Conversation

@lawrennd

Copy link
Copy Markdown
Contributor

Summary

  • Add a GPSS-style notebook smoke harness (scripts/smoke_notebooks.py), requirements-smoke.txt, and a GitHub Actions workflow that runs on PRs touching notebooks, weekly, and via workflow_dispatch.
  • Rebuild numbered lecture notebooks from current snippets (lecture 05 unchanged: MariaDB and credential widgets).
  • Point basis-function notes at Phi as the design matrix, and load movie body counts through the pandas include.

Left uncommitted on purpose: generated diagrams, stray -the-data-science-process artefacts, and local lecture-source WIP in _lamd/linear-regression.md, bayesian-regression.md, and dimensionality-reduction.md.

Test plan

  • python scripts/smoke_notebooks.py from a 3.12 venv with requirements-smoke.txt (lecture 05 skipped by default).
  • Confirm CI runs on this PR and uploads _notebooks/test-results.
  • Optional: python scripts/smoke_notebooks.py --only 04 09 11.

The GPSS-style harness executes numbered lecture notebooks in CI. Rebuilt notebooks pick up snippet loader rebinds and the basis-function design-matrix defines.
@lawrennd
lawrennd merged commit 35ba618 into gh-pages Oct 26, 2026
1 check passed
@lawrennd
lawrennd deleted the add/notebook-smoke branch October 26, 2026 08:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant