diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index 424240ccf..627848574 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -257,7 +257,9 @@ jobs: /opt/api-venv/bin/pytest tests/integration/test_b5_core_flows.py -v --tb=short -m integration || PYTEST_EXIT=$? # 清理 docker rm -f pg-test-b5 || true - find tests/integration -type d -name __pycache__ -prune -exec rm -rf {} + 2>/dev/null || true + # 2026-05-20 Codex: B5 imports shared tests helpers, so cleanup the + # whole tests tree to avoid root-owned __pycache__ act-runner noise. + find tests -type d -name __pycache__ -prune -exec rm -rf {} + 2>/dev/null || true exit "${PYTEST_EXIT:-0}" CI_SCRIPT docker run --rm \