From 405b7147a7468966387914eaf7015dc41534ca06 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Wed, 10 Jun 2026 07:14:29 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20deploy.yml=20=E7=94=A8=20/tmp/ci-ven?= =?UTF-8?q?v=20+=20=E7=9B=B4=E6=8E=A5=20pip=20install=20=E6=9B=BF=E4=BB=A3?= =?UTF-8?q?=20requirements.txt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 仓库没有 requirements.txt,deploy workflow 每次 push 到 main 都报错。 改为与 ci.yml 一致的方式:/tmp/ci-venv + 直接 pip install 依赖。 --- .gitea/workflows/deploy.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index 8430195..af91aab 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -23,16 +23,16 @@ jobs: - name: Setup Python run: | - python3 -m venv .venv - .venv/bin/pip install --quiet -r requirements.txt + python3 -m venv /tmp/ci-venv-deploy + /tmp/ci-venv-deploy/bin/pip install --quiet flake8 fastapi pydantic pyyaml uvicorn requests pytest pytest-asyncio httpx - name: Lint run: | - .venv/bin/flake8 src/ --max-line-length=120 --extend-ignore=E501 + /tmp/ci-venv-deploy/bin/flake8 src/ --max-line-length=120 --extend-ignore=E501 - name: Unit & Integration Tests run: | - .venv/bin/pytest tests/ -m "not e2e" -x -q + /tmp/ci-venv-deploy/bin/pytest tests/ -m "not e2e" -x -q # ── Job 2: 部署 ───────────────────────────────────── deploy: -- 2.45.4