[moz] fix(ci): pin pydantic<2 for Python 3.9 compatibility
CI runner 使用系统 Python 3.9.6,pydantic 2.x 需要 >=3.10。 不加约束时 pip 间歇性无法找到兼容版本(flaky)。 项目仅使用 BaseModel(1.x/2.x 均兼容),pin <2 安全。 Closes #98
This commit is contained in:
@@ -51,7 +51,7 @@ jobs:
|
||||
rm -rf /tmp/ci-venv-test
|
||||
python3 -m venv /tmp/ci-venv-test
|
||||
/tmp/ci-venv-test/bin/pip install --quiet --upgrade pip
|
||||
/tmp/ci-venv-test/bin/pip install --quiet --no-cache-dir fastapi pydantic pyyaml uvicorn requests pytest pytest-asyncio httpx
|
||||
/tmp/ci-venv-test/bin/pip install --quiet --no-cache-dir 'fastapi' 'pydantic<2' pyyaml uvicorn requests pytest pytest-asyncio httpx
|
||||
|
||||
- name: Debug environment
|
||||
run: |
|
||||
|
||||
Reference in New Issue
Block a user