From f4fea8f418194c68f05ef440a320183c521a60ce Mon Sep 17 00:00:00 2001 From: cfdaily Date: Sat, 20 Jun 2026 07:44:37 +0800 Subject: [PATCH] =?UTF-8?q?[moz]=20fix(ci):=20pip=20install=20=E5=8A=A0=20?= =?UTF-8?q?no=5Fproxy=3D*=20=E7=BB=95=E8=BF=87=E7=B3=BB=E7=BB=9F=E4=BB=A3?= =?UTF-8?q?=E7=90=86=E7=99=BD=E5=90=8D=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit CI runner 继承了系统 Wi-Fi 代理(127.0.0.1:7890),代理是白名单机制, pip install 走代理被拒绝。加 env no_proxy=* 让 pip 直连。 --- .gitea/workflows/ci.yml | 4 ++++ .gitea/workflows/deploy.yml | 2 ++ 2 files changed, 6 insertions(+) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 916d31f..a7ed798 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -25,6 +25,8 @@ jobs: - uses: actions/checkout@v4 - name: Setup Python + env: + no_proxy: "*" run: | rm -rf /tmp/ci-venv-lint python3 -m venv /tmp/ci-venv-lint @@ -43,6 +45,8 @@ jobs: - uses: actions/checkout@v4 - name: Setup Python + env: + no_proxy: "*" run: | rm -rf /tmp/ci-venv-test python3 -m venv /tmp/ci-venv-test diff --git a/.gitea/workflows/deploy.yml b/.gitea/workflows/deploy.yml index f113871..d0b1e77 100644 --- a/.gitea/workflows/deploy.yml +++ b/.gitea/workflows/deploy.yml @@ -22,6 +22,8 @@ jobs: - uses: actions/checkout@v4 - name: Setup Python + env: + no_proxy: "*" run: | 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