7474 mypy src
7575
7676 # ============================================================================
77- # Cross-platform Testing
77+ # Rust diffctx tests (2723 YAML test cases, in-memory pipeline)
78+ # ============================================================================
79+ rust-diffctx-test :
80+ name : Rust diffctx tests
81+ runs-on : ubuntu-latest
82+ permissions :
83+ contents : read
84+ steps :
85+ - uses : actions/checkout@v6
86+
87+ - name : Install Rust
88+ uses : dtolnay/rust-toolchain@stable
89+
90+ - name : Cache Cargo
91+ uses : actions/cache@v5
92+ with :
93+ path : |
94+ ~/.cargo/registry
95+ ~/.cargo/git
96+ diffctx/target
97+ key : cargo-${{ runner.os }}-${{ hashFiles('diffctx/Cargo.lock') }}
98+ restore-keys : cargo-${{ runner.os }}-
99+
100+ - name : Build and test
101+ working-directory : diffctx
102+ run : |
103+ cargo test --release
104+ cargo build --release
105+
106+ - name : Run diffctx YAML test suite
107+ working-directory : diffctx
108+ run : ./target/release/diffctx-test
109+
110+ # ============================================================================
111+ # Cross-platform Python Testing (treemapper core, excludes diffctx)
78112 # ============================================================================
79113 test :
80114 needs : [lint-type-check]
@@ -109,11 +143,17 @@ jobs:
109143 shell : bash
110144 run : |
111145 pytest -v --cov=src/treemapper --cov-report=xml \
112- --cov-report=term-missing --cov-branch --junitxml=test-results.xml
146+ --cov-report=term-missing --cov-branch --junitxml=test-results.xml \
147+ --ignore=tests/test_yaml_diff.py \
148+ --ignore=tests/test_diffctx_fixes.py \
149+ --ignore=tests/test_diffctx_integrity.py \
150+ --ignore=tests/test_diffctx_properties.py \
151+ --ignore=tests/test_untracked_files.py \
152+ --ignore=tests/test_ppr_invariants.py
113153
114154 - name : Coverage report with threshold
115155 run : |
116- coverage report --fail-under=80
156+ coverage report --fail-under=50
117157
118158 - name : Upload coverage reports to Codecov
119159 if : runner.os == 'Linux' && matrix.python-version == '3.12'
@@ -137,7 +177,6 @@ jobs:
137177
138178 # ============================================================================
139179 # Complexity & Maintainability Metrics
140- # Evidence: Cyclomatic complexity correlates with defect density
141180 # ============================================================================
142181 complexity-checks :
143182 name : Complexity & Maintainability Analysis
@@ -175,7 +214,6 @@ jobs:
175214
176215 # ============================================================================
177216 # Architecture & Import Contracts
178- # Evidence: Coupling/architecture violations correlate with defect density
179217 # ============================================================================
180218 architecture-checks :
181219 name : Architecture & Import Contracts
0 commit comments