From b2866e38e99f8861ca24028fb9da4381806357fd Mon Sep 17 00:00:00 2001 From: hhhhhh <2164677906@qq.com> Date: Sat, 19 Jul 2025 13:58:23 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20.gitea/workflows/ci.yml?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitea/workflows/ci.yml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 409763f..dfd0c70 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -38,13 +38,24 @@ jobs: sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1 python3 --version + - name: 设置 pip 国内镜像源 + run: | + mkdir -p ~/.pip + cat > ~/.pip/pip.conf << EOF + [global] + index-url = https://pypi.tuna.tsinghua.edu.cn/simple + trusted-host = files.pythonhosted.org + trusted-host = pypi.org + trusted-host = pypi.python.org + EOF + - name: 安装后端依赖 working-directory: back run: | python3.11 -m venv venv source venv/bin/activate pip install --upgrade pip - pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt + pip install -r requirements.txt - name: 安装 Docker run: |