-
-
Notifications
You must be signed in to change notification settings - Fork 0
87 lines (72 loc) · 2.39 KB
/
validation.yml
File metadata and controls
87 lines (72 loc) · 2.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
# SPDX-License-Identifier: MPL-2.0
name: Correspondence Validation
on:
push:
branches: [main, develop]
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
validate-correspondence:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
with:
fetch-depth: 0
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@nightly
with:
components: rustfmt, clippy
- name: Cache Rust dependencies
uses: actions/cache@668228422ae6a00e4ad889ee87cd7109ec5666a7 # v4
with:
path: |
~/.cargo/bin/
~/.cargo/registry/index/
~/.cargo/registry/cache/
~/.cargo/git/db/
impl/rust-cli/target/
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run correspondence validation
run: bash scripts/validate-correspondence.sh
working-directory: ${{ github.workspace }}
- name: Upload validation report
if: always()
uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7
with:
name: validation-report
path: validation-report.md
verify-proofs:
runs-on: ubuntu-latest
if: false # Disabled until proof systems installed in CI
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Install proof assistants
run: |
# TODO: Install Coq, Lean 4, Agda, Isabelle, Z3
echo "Proof verification disabled - install proof systems"
- name: Verify Lean 4 proofs
run: |
cd proofs/lean4
lake build
- name: Verify Coq proofs
run: |
cd proofs/coq
make clean && make all
property-testing:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@4be9e76fd7c4901c61fb841f559994984270fce7 # stable
- name: Run property-based tests
run: |
cd impl/rust-cli
cargo test --lib -- --test-threads=1 prop_
env:
PROPTEST_CASES: 1000 # More cases in CI
- name: Run correspondence tests
run: |
cd impl/rust-cli
cargo test --test correspondence_tests -- --nocapture