Skip to content

Commit 1e3d3ac

Browse files
committed
fix: install MathJax in the lint workflow for the math-snippet hook
The style job fails on every push: the check-math-snippets pre-commit hook (always_run, added for #173) requires node_modules/mathjax, but lint.yml never ran npm ci — only tests.yml did. Add the same "Install MathJax with npm" step before the pre-commit pass.
1 parent 96df6bf commit 1e3d3ac

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

‎.github/workflows/lint.yml‎

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,12 @@ jobs:
2020
- name: Install dependencies with uv
2121
run: uv sync --frozen --all-groups
2222

23+
# The pre-commit math-snippet hook (check-math-snippets) runs the
24+
# MathJax Node oracle (utils/check_math_snippets_node.cjs); Node is
25+
# preinstalled on the runner.
26+
- name: Install MathJax with npm
27+
run: npm ci
28+
2329
- name: Run pre-commit
2430
run: |
2531
uv run pre-commit run --all-files --color always --verbose --show-diff-on-failure

0 commit comments

Comments
 (0)