Audit remediation: god-file splits + ~30 bug fixes (34/35; e2e green 371/371, CI green) #27
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: ci | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| jobs: | |
| smoke: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install runtime deps | |
| run: pip install -r requirements.txt | |
| - name: Check frontend ES modules parse | |
| run: | | |
| set -e | |
| for f in $(find src -name '*.js'); do | |
| cp "$f" "$f.mjs" && node --check "$f.mjs" && rm "$f.mjs" | |
| done | |
| - name: Check Python sources parse | |
| run: | | |
| python3 - <<'PY' | |
| import ast, glob | |
| # Glob the server-side sources (root + the hvserver/ package + tools/) rather than | |
| # a hardcoded list, so deletions (mask_trace_prep, #17) and the server split (#29) | |
| # can't silently break this step again. | |
| files = sorted(set(glob.glob("*.py") + glob.glob("hvserver/*.py") + glob.glob("tools/*.py"))) | |
| for f in files: | |
| ast.parse(open(f).read()); print(f, "OK") | |
| PY | |
| - name: Smoke tests (parse + pixelvec + render) | |
| run: python3 tests/test_smoke.py |