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.
39 lines
893 B
YAML
39 lines
893 B
YAML
# Test-only deployment config, tracked in git and used by tests/conftest.py as
|
|
# a fallback when the real (gitignored) data/.config.yaml is absent — e.g. in
|
|
# CI or a fresh checkout. Minimal single-module stub so provider tests can
|
|
# construct objects against the mock shims in conftest. Placeholder keys only;
|
|
# never point it at a real manager-api.
|
|
manager-api:
|
|
url: ""
|
|
secret: ""
|
|
|
|
selected_module:
|
|
VAD: SileroVAD
|
|
ASR: OpenaiASR
|
|
LLM: OpenAILLM
|
|
TTS: EdgeTTS
|
|
Memory: nomem
|
|
Intent: nointent
|
|
|
|
ASR:
|
|
OpenaiASR:
|
|
type: openai
|
|
model_name: whisper-1
|
|
api_key: placeholder-key-do-not-use
|
|
base_url: http://127.0.0.1:18000/v1
|
|
|
|
LLM:
|
|
OpenAILLM:
|
|
type: openai
|
|
model_name: gpt-4o-mini
|
|
api_key: placeholder-key-do-not-use
|
|
base_url: http://127.0.0.1:18000/v1
|
|
|
|
TTS:
|
|
EdgeTTS:
|
|
type: edge
|
|
voice_name: en-US-AriaNeural
|
|
|
|
Memory:
|
|
nomem:
|
|
type: nomem
|