Skip to content

Commit 1c481e9

Browse files
committed
ci: rust-core job (fmt + clippy + tests) + oracle_exact selftest in lint
The Rust half of the P-022 migration gate: cargo fmt --check, clippy under the workspace's own strict [workspace.lints], and the test suite (incl. the own-ir round-trip of every OwnIR fixture) on every push/PR. oracle_exact.py --selftest joins the existing script-selftest block in the lint job. Until now the Rust gate ran only locally.
1 parent 2ecab43 commit 1c481e9

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

‎.github/workflows/ci.yml‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,35 @@ jobs:
3838
run: |
3939
python scripts/mine_report.py --selftest
4040
python scripts/oracle_compare.py --selftest
41+
python scripts/oracle_exact.py --selftest
4142
python scripts/metamorphic.py --selftest
4243
python scripts/metamorphic_facts.py --selftest
4344
python scripts/benchmark.py --selftest
4445
python scripts/validate_contrib.py --selftest
4546
47+
# The Rust core workspace (P-022): fmt + clippy under the workspace's own
48+
# strict [workspace.lints] + the test suite (incl. the own-ir round-trip of
49+
# every OwnIR fixture). This is the Rust half of the migration gate; the
50+
# Python half (the reference) is gated by `tests` / `lint` above, and the
51+
# differential oracle ties the two together as crates land.
52+
rust-core:
53+
name: rust (fmt + clippy + tests)
54+
runs-on: ubuntu-latest
55+
defaults:
56+
run:
57+
working-directory: rust
58+
steps:
59+
- uses: actions/checkout@v4
60+
- uses: dtolnay/rust-toolchain@stable
61+
with:
62+
components: rustfmt, clippy
63+
- name: cargo fmt --check
64+
run: cargo fmt --check
65+
- name: cargo clippy (workspace lints are the gate)
66+
run: cargo clippy --all-targets
67+
- name: cargo test
68+
run: cargo test
69+
4670
# Own.NET Audit (audit/) — the aggregation layer's selftests, the only thing the
4771
# Linux CI gates for the audit (the target itself is analyzed on a local Windows
4872
# machine, never in CI; see audit/README.md and Plan.md §3.2). PyYAML is scoped

0 commit comments

Comments
 (0)