From cbdc965a0ed62d6c1f5f9487223fd437e8e21530 Mon Sep 17 00:00:00 2001 From: jiangwei-infra Date: Tue, 9 Jun 2026 13:21:01 +0800 Subject: [PATCH] fix(ci): use /tmp/ci-venv-* to avoid host .venv conflict --- .gitea/workflows/ci.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 43567ae..d6673ce 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -29,12 +29,12 @@ jobs: - name: Setup Python run: | - python3 -m venv .venv - .venv/bin/pip install --quiet flake8 + python3 -m venv /tmp/ci-venv-lint + /tmp/ci-venv-lint/bin/pip install --quiet flake8 - name: Lint with flake8 run: | - .venv/bin/flake8 src/ --max-line-length=120 --extend-ignore=E501 + /tmp/ci-venv-lint/bin/flake8 src/ --max-line-length=120 --extend-ignore=E501 # ── Job 2: Test ────────────────────────────────────── test: @@ -45,12 +45,12 @@ jobs: - name: Setup Python run: | - python3 -m venv .venv - .venv/bin/pip install --quiet -r requirements.txt + python3 -m venv /tmp/ci-venv-test + /tmp/ci-venv-test/bin/pip install --quiet -r requirements.txt - name: Run tests (exclude E2E) run: | - .venv/bin/pytest tests/ -m "not e2e" -x -q + /tmp/ci-venv-test/bin/pytest tests/ -m "not e2e" -x -q # ── Job 3: CI 失败通知 ─────────────────────────────── # v1.23 不支持 failure(),用 always() + shell 检查 commit status 替代