更新 .gitea/workflows/ci.yml

This commit is contained in:
2025-07-19 13:58:23 +08:00
parent a3dc432f8d
commit b2866e38e9

View File

@ -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: |