From 576cd96b43575de2d7c89f2f31d21ff567efe6e1 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sat, 20 Jun 2026 12:04:35 +0800 Subject: [PATCH] =?UTF-8?q?[moz]=20ci:=20=E5=8E=BB=E6=8E=89=20pip=20instal?= =?UTF-8?q?l=20--no-cache-dir=EF=BC=8C=E5=90=AF=E7=94=A8=20pip=20=E7=BC=93?= =?UTF-8?q?=E5=AD=98=E5=8A=A0=E9=80=9F=20test=20job?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 根因:--no-cache-dir 每次全量下载 8 个包(3 分钟),pytest 实际只跑 3 秒。 姜维确认安全去掉(commit f6f26d7 为排查 dist-info 问题添加,现已不适用)。 --- .gitea/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 726bff2..aebf9a6 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -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<2' pyyaml uvicorn requests pytest pytest-asyncio httpx + /tmp/ci-venv-test/bin/pip install --quiet 'fastapi' 'pydantic<2' pyyaml uvicorn requests pytest pytest-asyncio httpx - name: Debug environment run: |