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 替代