-
Notifications
You must be signed in to change notification settings - Fork 0
59 lines (51 loc) · 1.39 KB
/
t4-coverage.yml
File metadata and controls
59 lines (51 loc) · 1.39 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: T4 Coverage
on:
pull_request:
paths:
- "backend/**"
- "frontend/**"
- "mcp_gateway/**"
- "tracker/**"
- "telemetry_tracker/**"
- "scripts/run_t4_coverage.sh"
- "docs/ops/t4_coverage_policy.md"
push:
branches: [main]
paths:
- "backend/**"
- "frontend/**"
- "mcp_gateway/**"
- "tracker/**"
- "telemetry_tracker/**"
- "scripts/run_t4_coverage.sh"
- "docs/ops/t4_coverage_policy.md"
workflow_dispatch:
jobs:
coverage:
runs-on: ubuntu-latest
timeout-minutes: 45
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: actions/setup-node@v4
with:
node-version: "24"
cache: "npm"
cache-dependency-path: axum-labs-design-app/package-lock.json
- uses: dtolnay/rust-toolchain@stable
- name: Install coverage dependencies
run: |
set -euo pipefail
python3 -m pip install -r backend/requirements-dev.txt
npm --prefix axum-labs-design-app ci
cargo install cargo-llvm-cov
- name: Run T4 coverage gate
run: ./scripts/run_t4_coverage.sh
- name: Upload coverage artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: t4-coverage
path: artifacts/coverage/