Keep the model validation out of the deploy workflow
1 changed file+7−7
.github/workflows/deploy.ymlmodified+7−7View file
@@ -2,12 +2,18 @@ name: Deploy to Pages
22
33 # Builds webapp/ and publishes it as this repository's site.
44 #
5-# Two notes on the vault:
5+# Three notes on the vault:
66 # - there is no cache service, so setup-node runs without `cache: npm`;
77 # - a mochi site is served at /<collection>/<repo>/site/ or at the root of an
88 # origin of its own. The Vite build uses a relative base (`base: './'`), so
99 # it works at either without being told the deploy path, and configure-pages
1010 # is therefore only here for parity with the deploy step.
11+# - the runner is one small machine shared by every repository in the vault,
12+# so this workflow does no more than install, build, and publish. The model
13+# validation is deliberately not here: `npm run selftest` executes the
14+# MATLAB validation script through numbl, which takes minutes on a
15+# development machine and far longer on the runner. Run it locally before
16+# pushing.
1117
1218 on:
1319 push:
@@ -37,12 +43,6 @@ jobs:
3743 working-directory: webapp
3844 run: npm ci
3945
40- # Runs matlab/woodblock_validate.m through numbl and fails on any
41- # departure from the woodblock.py reference diagnostics.
42- - name: Validate the model against the reference
43- working-directory: webapp
44- run: npm run selftest
45-
4646 - name: Build
4747 working-directory: webapp
4848 run: npm run build