From 97fc784362fa2720eea5e9c602ed0f89b7e85830 Mon Sep 17 00:00:00 2001 From: Daniel McCoy Stephenson Date: Sun, 8 Nov 2026 00:58:19 -0700 Subject: [PATCH] Syntax-check every top-level module in the workflow The Check syntax step listed modules by name and had fallen behind text_renderer.py, console_view.py and viron_address.py. A shell glob covers them and any module added later. Co-Authored-By: Claude Opus 5.5 --- .github/workflows/tests.yml | 3 ++- README.md | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1dbc0c7..f825da8 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -26,8 +26,9 @@ jobs: - name: Install dependencies run: python -m pip install pygame + # The shell glob covers every top-level module, so a new one needs no change here. - name: Check syntax - run: python -m py_compile main.py graphik.py __init__.py render_window.py headless_run.py usage_reporting.py trace_client.py + run: python -m py_compile *.py - name: Run unit tests run: python -m unittest discover -s tests diff --git a/README.md b/README.md index d9ec58d..adbb261 100644 --- a/README.md +++ b/README.md @@ -258,7 +258,7 @@ python -m unittest discover -s tests Run the command from the repository root, so that the top-level modules the tests import (`main.py`, `render_window.py`, `graphik.py`, `headless_run.py`, `text_renderer.py`, `console_view.py`, `viron_address.py`, `usage_reporting.py` and `trace_client.py`) are importable. -The same command, preceded by a `py_compile` syntax check of the top-level modules other than `text_renderer.py`, `console_view.py` and `viron_address.py`, which the suite imports anyway, is run by the `Tests` GitHub Actions workflow (`.github/workflows/tests.yml`) on every pull request targeting `main` and on every push to `main`. The workflow checks the repository out without the `Viron` submodule, since the suite does not need it. +The same command, preceded by a `py_compile` syntax check of every top-level `.py` file in the repository root, is run by the `Tests` GitHub Actions workflow (`.github/workflows/tests.yml`) on every pull request targeting `main` and on every push to `main`. The workflow checks the repository out without the `Viron` submodule, since the suite does not need it. ### Running without Docker or a display