From 5a69a6d2d1cc91fb8ea4dc2911991ef9baf73479 Mon Sep 17 00:00:00 2001 From: OG T Date: Fri, 10 Apr 2026 11:35:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20B5=20=E6=95=B4=E5=90=88=E6=B8=AC?= =?UTF-8?q?=E8=A9=A6=E6=94=B9=E7=94=A8=20/opt/api-venv/bin/pytest=20(venv?= =?UTF-8?q?=20=E5=85=A7=E7=9A=84=20pytest)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit python3.11 -m pytest 找不到模組 (exitcode 1) 改用持久化 venv 路徑,與 Run API Tests step 共用同一 venv Co-Authored-By: Claude Sonnet 4.6 --- .gitea/workflows/cd.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/cd.yaml b/.gitea/workflows/cd.yaml index b475a491..57fa5932 100644 --- a/.gitea/workflows/cd.yaml +++ b/.gitea/workflows/cd.yaml @@ -134,7 +134,7 @@ jobs: psql -U awoooi -d awoooi_test \ -f /dev/stdin < tests/integration/setup_test_schema.sql TEST_DATABASE_URL="postgresql+asyncpg://awoooi:awoooi_test_2026@127.0.0.1:15432/awoooi_test" \ - python3.11 -m pytest tests/integration/test_b5_core_flows.py -v --tb=short + /opt/api-venv/bin/pytest tests/integration/test_b5_core_flows.py -v --tb=short TEST_EXIT=$? docker compose -f docker-compose.test.yml down -v 2>/dev/null || true exit $TEST_EXIT