ci: 集成测试拆分为独立job + runner标签适配 + 清理废workflow (#223)
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 30m0s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1600h44m5s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1601h14m6s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1600h44m5s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1601h14m2s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1601h45m38s
CI/CD Pipeline / Build & Push Staging (Watchtower auto-deploy) (push) Failing after 30m0s
CI/CD Pipeline / Staging API Integration Tests (push) Failing after 1600h44m5s
CI/CD Pipeline / Build Production Runtime Images (push) Failing after 1601h14m6s
CI/CD Pipeline / Staging E2E Tests (push) Failing after 1600h44m5s
CI/CD Pipeline / Production Browser E2E (push) Failing after 1601h14m2s
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been skipped
CI/CD Pipeline / Integration Tests (push) Has been skipped
CI/CD Pipeline / Frontend Lint (push) Has been skipped
CI/CD Pipeline / Deploy Production (push) Failing after 1601h45m38s
ci: 集成测试拆分为独立job + runner标签适配 + 清理废workflow - 集成测试从Validate中拆出为独立job,PR页面可见独立status - runner标签从ubuntu-22.04适配为host - 清理3个废workflow(tests.yml、test-ssh-secret.yml、auto-merge.yml) - 修复Verify步骤python命令为python3 - Validate单元测试只统计API层覆盖率,排除worker代码 - 集成测试覆盖率门槛降至40%,覆盖率汇总脚本支持环境变量 - Integration Tests加Redis容器(host模式无预装Redis)
This commit was merged in pull request #223.
This commit is contained in:
@@ -1,10 +1,11 @@
|
||||
#!/usr/bin/env python3
|
||||
"""解析 coverage.xml 并输出覆盖率汇总。"""
|
||||
|
||||
import os
|
||||
import sys
|
||||
import xml.etree.ElementTree as ET
|
||||
|
||||
THRESHOLD = 65 # 行覆盖率门槛,百分比
|
||||
THRESHOLD = int(os.environ.get("COVERAGE_THRESHOLD", 65)) # 行覆盖率门槛,百分比,可通过环境变量覆盖
|
||||
|
||||
|
||||
def main() -> int:
|
||||
|
||||
Reference in New Issue
Block a user