From dc31e91d6e101cb23bee6d5f6eb94ee44064c299 Mon Sep 17 00:00:00 2001 From: jrhlh <150811537+jrhlh@users.noreply.github.com> Date: Sat, 19 Jul 2025 11:16:09 +0800 Subject: [PATCH] 1 --- .gitea/workflows/ci.yml | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index bdfa943..da654c1 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -40,7 +40,12 @@ jobs: - name: 安装后端依赖 working-directory: back - run: python3.11 -m pip install --break-system-packages -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt + 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 - name: 构建 Docker 镜像 - run: docker-compose build \ No newline at end of file + run: | + docker-compose build \ No newline at end of file