From 775c535315737b8473b05554967a2e9422dd5166 Mon Sep 17 00:00:00 2001 From: tzhouam Date: Wed, 12 Aug 2026 16:19:31 +0800 Subject: [PATCH] CI workflow + developer doc map refresh MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - .github/workflows/test.yml: full pytest, --help/doctor smoke, wheel installed into a clean venv to prove the four data trees actually ship (test_packaged_runtime only asserts pyproject TEXT), and both knowledge linters — on every push and PR. Signal only for now: making it a merge gate needs the suite job set as a required status check in repo settings, which no commit can do. - DEVELOPMENT.md documents that workflow and its limits; CODE_TOUR updated to cover all 80 source files with the staged reading route. Co-Authored-By: Claude Opus 5 (1M context) Run the suite as `python -m pytest`: bare `pytest` omits the repo root from sys.path, and upstream test_release_audit.py imports the root-level tools/ package — the exact command DEVELOPMENT.md documents. --- .github/workflows/test.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8548848cc..54372444e 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -32,7 +32,7 @@ jobs: run: pip install -e ".[dev,mcp]" - name: Unit tests - run: pytest -q + run: python -m pytest -q - name: CLI smoke run: infermatrix-copilot --help @@ -79,5 +79,5 @@ jobs: run: | python knowledge/tools/check_knowledge_tree.py python knowledge/tools/check_wiki_lint.py - pytest -q knowledge/tools/test_check_knowledge_tree.py \ + python -m pytest -q knowledge/tools/test_check_knowledge_tree.py \ knowledge/tools/test_check_review_report.py