mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
PR#2 CI: the Python job failed with 17 FileNotFoundError collection errors. Widening CI from upstream's smoke-test-only to the full suite exposed that the suite depends on main/xiaozhi-server/data/.config.yaml, which is gitignored and therefore absent on CI runners (dev boxes always have it, so the local rebase gate never caught it). - add tracked tests/testdata/test-config.yaml (placeholder keys, empty manager-api block, same shape as the local stub) - conftest falls back to it when data/.config.yaml is missing (explicit PYTEST_CONFIG_FILE still wins) - neutralize config.settings/config.logger check_config_file bindings and logger's load_config so setup_logging() at module import works without a real deployment config; these names are bound at import time via manage_api_client -> config.logger, so patching the source modules alone was not enough Verified on a clean clone with py3.10 + full requirements: 58 passed, 5 skipped; lifecycle unittests 11 OK on both clean clone and dev box. |
||
|---|---|---|
| .. | ||
| config | ||
| core | ||
| plugins_func | ||
| testdata | ||
| __init__.py | ||
| conftest.py | ||
| test_llm.py | ||
| test_manage_api_client_lifecycle.py | ||
| test_memory.py | ||
| test_rag.py | ||
| test_smoke.py | ||
| test_stt.py | ||
| test_tts.py | ||