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

@@ -1,4 +1,9 @@
# Python 依赖(纯 Python AST 解析,无需 Java # Python 依赖(版本锁定,避免 CI pip 冲突
PyYAML>=6.0.1 PyYAML==6.0.2
requests>=2.31.0 requests==2.32.3
javalang>=0.13.0 charset-normalizer==3.4.1
urllib3==2.2.3
certifi==2024.8.30
idna==3.10
javalang==0.13.0
six==1.16.0

View File

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