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