ci: switch syntax-check from cli.py to cli/ package

The CLI was split into a package in b5a44a1; the workflow still
ran ``python -m py_compile cli.py`` against the now-renamed file
and failed with "No such file or directory: 'cli.py'".

Use ``python -m compileall -q cli`` so every module under the
package (``main.py``, ``_legacy.py``, ``commands/``, ``components/``,
``utils/``, ``_version.py``, ``__main__.py``) is checked together.
This commit is contained in:
Haozhe Wu committed 2026-05-22 00:04:00 +08:00
1 parent b5a44a1e56
commit 1edf27e040
1 file changed
+1 -1
+1 -1
View File
@@ -25,7 +25,7 @@ jobs:
- name: Syntax check
run: |
cd agent
python -m py_compile cli.py
python -m compileall -q cli
python -m py_compile api_server.py
python -m py_compile mcp_server.py
python -m py_compile src/agent/loop.py