feat: run the CI suite as parallel processes

validate.yml and pr_checks.py run scripts/run_tests.py with four jobs,
the runner's cores: 24 minutes here for the suite that took about 40 in
one process. A failed module's tracebacks are printed in the summary, as
a runner keeps no log file. The two scripts added today follow the rules
the suite holds every script to (no abbreviated option, run_cli, every
option documented), and the two isolation tests drop the per-module
scratch variable to check the folder a module gets alone.
This commit is contained in:
Abdessamad Derraz committed 2026-11-12 15:36:46 +01:00
1 parent fb33ee58e1
commit abbfebff3e
11 files changed
+63 -27

No files matched your search

+1 -1
View File
@@ -147,7 +147,7 @@ class ThePullRequestBuildsTheSite(unittest.TestCase):
generate = next(
i for i, run in enumerate(runs) if "scripts/generate_site.py" in run
)
suite = next(i for i, run in enumerate(runs) if "unittest discover" in run)
suite = next(i for i, run in enumerate(runs) if "scripts/run_tests.py" in run)
self.assertLess(generate, suite)
# The built pages too: about fifty tests read website/dist.
build = next(i for i, run in enumerate(runs) if "npm run build" in run)