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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
name: Test
on:
pull_request:
push:
branches:
- main
schedule:
- cron: '0 9 * * 0'
workflow_dispatch:
inputs:
run:
description: Manual test target
type: choice
required: true
default: full-suite
options:
- full-suite
- diagnostics
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
short-tests:
name: Short tests
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@1.86.0
with:
components: rustfmt
- name: Cache Cargo build artifacts
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all --check
- name: Run short tests
run: cargo test --locked
- name: Run IMT integration tests
run: cargo test --locked --features unstable-internal-api --test imt_circuit_integration
full-suite:
name: Full suite
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && inputs.run == 'full-suite')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Cache Cargo build artifacts
uses: Swatinem/rust-cache@v2
- name: Check formatting
run: cargo fmt --all --check
- name: Run short tests
run: cargo test --locked
- name: Run long tests
run: cargo test --locked -- --ignored --skip row_budget --skip cost_breakdown
- name: Run IMT integration tests
run: cargo test --locked --features unstable-internal-api --test imt_circuit_integration
- name: Run long IMT integration tests
run: cargo test --locked --features unstable-internal-api --test imt_circuit_integration -- --ignored --test-threads=1
diagnostics:
name: Diagnostics
if: github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && inputs.run == 'diagnostics')
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust
uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt
- name: Cache Cargo build artifacts
uses: Swatinem/rust-cache@v2
- name: Run row-budget diagnostics
run: cargo test --locked row_budget -- --ignored --nocapture
- name: Run cost-breakdown diagnostics
run: cargo test --locked cost_breakdown -- --ignored --nocapture