Update workflow to include path configuration

This commit is contained in:
shenjack 2023-12-14 10:02:27 +08:00
parent 450c879742
commit 74bbf2bfcf
Signed by: shenjack
GPG Key ID: 7B1134A979775551

View File

@ -13,6 +13,8 @@ jobs:
steps: steps:
- name: 获取仓库 - name: 获取仓库
uses: http://shenjack.top:5100/gitea-server/checkout@v4 uses: http://shenjack.top:5100/gitea-server/checkout@v4
with:
path: main
# - name: 安装 Python # - name: 安装 Python
# uses: actions/setup-python # uses: actions/setup-python
@ -24,9 +26,14 @@ jobs:
uses: http://shenjack.top:5100/gitea-server/checkout@v4 uses: http://shenjack.top:5100/gitea-server/checkout@v4
with: with:
repository: gitea-server/python-packs repository: gitea-server/python-packs
with:
path: python-packs
- name: 安装依赖 - name: 安装依赖
run: | run: |
ls -la .
ls -la ..
ls -la ../..
python3 -m ../python-packs/ensurepip python3 -m ../python-packs/ensurepip
python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple python3 -m pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
python3 -m pip install -U pip python3 -m pip install -U pip