fix(ci): black格式化修正(line-length=120)
CI Build & Deploy Pipeline / Build Staging Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Staging Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production API Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Worker Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Build Production Web Image (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI Build & Deploy Pipeline / Deploy Production (pull_request) Has been skipped
CI Build & Deploy Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Check if frontend-only change (pull_request) Successful in 8s
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 35s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 47s
Auto Merge CI PRs / Auto Merge on CI Green + Approved (pull_request) Successful in 14s
Auto Approve CI PRs / Auto Approve on CI Green (pull_request) Successful in 18s
AI Code Review / AI Code Review (pull_request) Successful in 1m14s
CI/CD Pipeline / Integration Tests (pull_request) Successful in 1m39s
CI/CD Pipeline / Unit Tests (pull_request) Successful in 2m58s

This commit is contained in:
2026-07-17 17:29:36 +08:00
parent 04a65713cd
commit 5cf325ab42
+2 -6
View File
@@ -170,9 +170,7 @@ def select_tests(changed_files):
if matches:
for m in matches:
selected.add(m)
print(
f"[map] {f} -> {len(matches)} 个测试: {[Path(m).name for m in matches]}"
)
print(f"[map] {f} -> {len(matches)} 个测试: {[Path(m).name for m in matches]}")
else:
print(f"[nomatch] {f} (module: {module_name}) 未找到匹配的测试文件")
@@ -215,9 +213,7 @@ def main():
if gh_output:
with open(gh_output, "a") as f:
f.write(f"test_count={len(selected)}\n")
f.write(
"mode=" + ("incremental" if "incremental" in mode else "full") + "\n"
)
f.write("mode=" + ("incremental" if "incremental" in mode else "full") + "\n")
# 退出码:0=增量, 1=全量(供CI判断)
sys.exit(0 if "incremental" in mode else 1)