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