fix(cd): 修復 pip install PEP 668 externally-managed-environment 錯誤
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:
@@ -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 測試通過"
|
||||
|
||||
Reference in New Issue
Block a user