feat(playbook): add install_mode deployment config

BREAKING CHANGE: [vendor] and playbook.deploy_root are no longer supported. Use [playbook].install_mode and playbook.playbook_root instead.
This commit is contained in:
csh
2026-06-01 10:49:16 +08:00
parent 2c3a559a30
commit f2ab57b39f
15 changed files with 376 additions and 184 deletions
+6 -9
View File
@@ -1,6 +1,7 @@
---
name: 🧪 Playbook 测试套件
on:
"on":
push:
branches:
- main
@@ -54,7 +55,8 @@ jobs:
git clone "$REPO_URL" "$REPO_DIR"
if git -C "$REPO_DIR" cat-file -e "${TARGET_SHA}^{commit}" 2>/dev/null; then
if git -C "$REPO_DIR" cat-file -e \
"${TARGET_SHA}^{commit}" 2>/dev/null; then
git -C "$REPO_DIR" checkout -f "$TARGET_SHA"
else
if [ -n "$TARGET_REF" ]; then
@@ -90,16 +92,11 @@ jobs:
set -euo pipefail
echo "========================================"
echo "🧪 Python CLI 测试"
echo "🧪 Python 测试"
echo "========================================"
cd "$REPO_DIR"
python3 -m unittest discover -s tests/cli -v
echo "========================================"
echo "🧪 Python 扩展测试"
echo "========================================"
echo "覆盖:CLI、subtree/snapshot 部署路线、模板同步、文档一致性"
python3 -m unittest discover -s tests -p "test_*.py" -v
echo "========================================"