fix(cd): 修復 pip install PEP 668 externally-managed-environment 錯誤
Some checks failed
CD Pipeline / build-and-deploy (push) Failing after 14s
E2E Health Check / e2e-health (push) Successful in 16s

pip install uv 在新版 Docker runner 中被 PEP 668 阻擋。
加入 --break-system-packages 允許在系統 Python 安裝 uv。

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
OG T
2026-04-01 10:40:01 +08:00
parent b804c574c8
commit 4df155c65f

View File

@@ -55,7 +55,7 @@ jobs:
- name: Run API Tests
run: |
cd apps/api
pip install -q uv
pip install -q uv --break-system-packages
uv pip install --system -e ".[dev]" -q
pytest tests/ -v --tb=short --timeout=60 2>&1 | tail -50
echo "✅ API 測試通過"