♻️ refactor(test): consolidate repository checks

This commit is contained in:
csh
2026-07-20 09:08:36 +08:00
parent 10ce779b1b
commit ff07c79818
24 changed files with 426 additions and 4596 deletions
+2 -29
View File
@@ -71,24 +71,7 @@ jobs:
echo "REPO_DIR=$REPO_DIR" >> "$GITHUB_ENV"
echo "✅ 仓库准备完成"
- name: 🔧 安装测试依赖
run: |
echo "========================================"
echo "📦 安装测试依赖"
echo "========================================"
apt-get update
apt-get install -y python3-pip
python3 -m pip install --upgrade pip
python3 -m pip install yamllint tomli
echo ""
echo "✅ Python 版本: $(python3 --version)"
echo "✅ 依赖安装完成"
echo "========================================"
- name: 🧪 运行全量测试并生成报告
- name: 🧪 运行全量测试
shell: bash
run: |
set -euo pipefail
@@ -102,21 +85,11 @@ jobs:
python3 -m unittest discover -s test -p "test_*.py" -v
echo "✅ Python 测试通过"
echo "========================================"
echo "📝 模板验证测试"
echo "========================================"
sh test/templates/validate_python_templates.sh
sh test/templates/validate_cpp_templates.sh
sh test/templates/validate_ci_templates.sh
sh test/templates/validate_project_templates.sh
echo "✅ 模板验证通过"
echo "========================================"
echo "🔗 文档链接检查"
echo "========================================"
sh test/integration/check_doc_links.sh
python3 test/integration/check_doc_links.py
echo "✅ 文档链接检查通过"
echo "🎉 所有测试完成"