Run all script unit tests on every PR, not just the clusters tests

LU
1d ago
+45-34

Only the clusters tests ran in CI, so a PR could break the tests for the SEO checks, the data and staging scripts or the disciplines parser without anyone noticing (#1223).

The clusters workflow becomes script-tests.yaml. On every PR it runs everything in scripts/tests/ plus scripts/test_parse_disciplines_gdoc.py. The tests take about 4 seconds (49 on main, 179 on rebrand-doors), and installing pandas, python-docx and playwright takes most of the job's time. Playwright is only imported by the Doors preview checks; no browsers are installed.

Every PR rather than a path filter, because the tests also read data, content and workflow files. Checked locally in a clean virtual environment with only those three packages: both suites pass on main and on #1222's branch.

Closes #1223.

Created with Claude Opus 5.5 in Claude Code (T3 Code).


Summary by cubic

Runs all script unit tests on every PR so the SEO checks, data and staging scripts, and the disciplines parser can't break unnoticed. Only the clusters tests ran in CI before.

Notes

  • The clusters workflow becomes script-tests.yaml, adding the disciplines parser test and the tests in scripts/tests/.
  • Every PR triggers it rather than a path filter because the tests read data, content, and workflow files.
  • The tests take a few seconds; installing pandas, python-docx, and playwright takes most of the job time. Playwright is only imported, no browsers are installed.
  • Closes #1223.