更新 .gitea/workflows/ci.yml
This commit is contained in:
@ -38,13 +38,24 @@ jobs:
|
|||||||
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
|
sudo update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.11 1
|
||||||
python3 --version
|
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: 安装后端依赖
|
- name: 安装后端依赖
|
||||||
working-directory: back
|
working-directory: back
|
||||||
run: |
|
run: |
|
||||||
python3.11 -m venv venv
|
python3.11 -m venv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install -i https://pypi.tuna.tsinghua.edu.cn/simple -r requirements.txt
|
pip install -r requirements.txt
|
||||||
|
|
||||||
- name: 安装 Docker
|
- name: 安装 Docker
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
Reference in New Issue
Block a user