fix: build the site before the CI test suite

This commit is contained in:
Abdessamad Derraz committed 2026-11-05 11:45:49 +01:00
1 parent ecb56c43e5
commit 0b8e4b4767
2 files changed
+14 -4

No files matched your search

+5
View File
@@ -142,6 +142,11 @@ class ThePullRequestBuildsTheSite(unittest.TestCase):
)
suite = next(i for i, run in enumerate(runs) if "unittest discover" 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)
self.assertLess(generate, build)
self.assertLess(build, suite)
self.assertEqual(steps[build].get("if"), "${{ !cancelled() }}")
self.assertEqual(steps[suite].get("if"), "${{ !cancelled() }}")
# A failed data fetch skipped the generator, and all 228 site tests
# then failed under it: the generator runs whatever came before.