py依赖修改
All checks were successful
API接口参数变更检测 / api-param-check (push) Successful in 33s

This commit is contained in:
2026-06-03 15:40:47 +08:00
parent d20bc1a168
commit 0600feed2e
2 changed files with 18 additions and 9 deletions

View File

@@ -26,16 +26,20 @@ jobs:
exit 1
fi
- name: 安装 Python 依赖
- name: 安装 Python 依赖
run: |
sudo apt-get update
sudo apt-get install -y python3 python3-pip
python3 -m pip install --break-system-packages -r .gitea/checker/requirements.txt
if ! python3 -m venv .gitea/.venv 2>/dev/null; then
sudo apt-get update -qq
sudo apt-get install -y python3-venv
python3 -m venv .gitea/.venv
fi
.gitea/.venv/bin/pip install --upgrade pip
.gitea/.venv/bin/pip install -r .gitea/checker/requirements.txt
- name: 检测 Controller 接口参数变更
run: |
COMMIT_TIME=$(git log -1 --format=%cd --date=format:'%Y-%m-%d %H:%M:%S')
python3 .gitea/checker/main.py \
.gitea/.venv/bin/python .gitea/checker/main.py \
--config .gitea/config.yaml \
--repo-root . \
"${{ gitea.actor }}" \