Merge PR #135: [moz] ci(deploy) deploy venv 钉 3.9.6 + 锁版本,解锁部署管道
This commit was merged in pull request #135.
This commit is contained in:
@@ -33,9 +33,9 @@ jobs:
|
|||||||
no_proxy: "*"
|
no_proxy: "*"
|
||||||
run: |
|
run: |
|
||||||
rm -rf /tmp/ci-venv-deploy
|
rm -rf /tmp/ci-venv-deploy
|
||||||
python3 -m venv /tmp/ci-venv-deploy
|
/usr/bin/python3 -m venv /tmp/ci-venv-deploy # 钉解释器 3.9.6:同 ci.yml 修复(#134),brew python3=3.14 的 tokenize 漂移致 E122 假阳性
|
||||||
/tmp/ci-venv-deploy/bin/pip install --quiet --upgrade pip
|
/tmp/ci-venv-deploy/bin/pip install --quiet --upgrade pip
|
||||||
/tmp/ci-venv-deploy/bin/pip install --quiet flake8 fastapi pydantic pyyaml uvicorn requests pytest pytest-asyncio httpx
|
/tmp/ci-venv-deploy/bin/pip install --quiet 'flake8==7.3.0' fastapi 'pydantic<2' pyyaml uvicorn requests pytest pytest-asyncio httpx # 锁版本:pydantic<2(代码库 v1 基线,未锁会装 v2 import 崩)+ flake8 防漂移
|
||||||
|
|
||||||
- name: Lint
|
- name: Lint
|
||||||
run: |
|
run: |
|
||||||
@@ -43,7 +43,7 @@ jobs:
|
|||||||
|
|
||||||
- name: Unit & Integration Tests
|
- name: Unit & Integration Tests
|
||||||
run: |
|
run: |
|
||||||
/tmp/ci-venv-deploy/bin/pytest tests/ -m "not e2e" -x -q
|
PYTHONPATH=$(pwd) /tmp/ci-venv-deploy/bin/pytest tests/ -m "not e2e" -x -q # 对齐 ci.yml test 配方
|
||||||
|
|
||||||
# ── Job 2: 部署 ─────────────────────────────────────
|
# ── Job 2: 部署 ─────────────────────────────────────
|
||||||
deploy:
|
deploy:
|
||||||
|
|||||||
Reference in New Issue
Block a user