ci: fix coverage parsing and artifact upload

This commit is contained in:
2026-09-16 11:21:42 +08:00
parent 7712b033b0
commit b05b8b6d1b
+2 -2
View File
@@ -70,7 +70,7 @@ jobs:
for line in Path("evidence/go-cover.txt").read_text().splitlines()
if line.startswith("total:")
)
coverage = float(total.rsplit(" ", 1)[-1].rstrip("%"))
coverage = float(total.strip().split()[-1].rstrip("%"))
if coverage < 65:
raise SystemExit(f"Go coverage {coverage:.2f}% is below 65%")
skipped = []
@@ -132,7 +132,7 @@ jobs:
docker compose images --quiet creator-hub docker-gateway \
| sort -u | tee evidence/compose-image-ids.txt
curl --fail --retry 10 --retry-delay 2 http://127.0.0.1:8080/readyz
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02
- uses: actions/upload-artifact@a8a3f3ad30e3422c9c7b888a15615d19a852ae32
if: always()
with:
name: douyin-release-gate-evidence