ci: 覆盖率汇总脚本支持环境变量门槛,集成测试设为40%
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Failing after 50s
CI/CD Pipeline / Frontend Lint (pull_request) Successful in 4m12s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (pull_request) Has been skipped
CI/CD Pipeline / Build Production Runtime Images (pull_request) Has been skipped
CI/CD Pipeline / Staging API Integration Tests (pull_request) Has been skipped
CI/CD Pipeline / Staging E2E Tests (pull_request) Has been skipped
CI/CD Pipeline / Deploy Production (pull_request) Has been skipped
CI/CD Pipeline / Production Browser E2E (pull_request) Has been skipped
CI/CD Pipeline / Integration Tests (pull_request) Successful in 3m8s

This commit is contained in:
用户CI Test
2026-07-11 21:40:01 +08:00
parent 9ca35ee324
commit e8d95ac1b3
2 changed files with 5 additions and 1 deletions
+2
View File
@@ -439,6 +439,8 @@ jobs:
- name: Coverage summary
if: always()
shell: sh
env:
COVERAGE_THRESHOLD: "40"
run: |
set +e
echo "=== 覆盖率汇总 ==="
+3 -1
View File
@@ -4,7 +4,9 @@
import sys
import xml.etree.ElementTree as ET
THRESHOLD = 65 # 行覆盖率门槛,百分比
import os
THRESHOLD = int(os.environ.get("COVERAGE_THRESHOLD", 65)) # 行覆盖率门槛,百分比,可通过环境变量覆盖
def main() -> int: