Repository navigation
137 lines (109 loc) · 4.85 KB
/
Copy pathci.yml
File metadata and controls
137 lines (109 loc) · 4.85 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
# `labeled` so that adding `full-ci` to a pull request starts the macOS and Windows lanes.
types: [opened, synchronize, reopened, labeled]
workflow_dispatch:
env:
CARGO_TERM_COLOR: always
RUST_BACKTRACE: short
jobs:
test:
name: Test (${{ matrix.os }})
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Pull requests test on Linux, where the goldens run; pushes to main, manual runs and
# pull requests labelled `full-ci` also test on macOS and Windows.
os: ${{ fromJSON((github.event_name == 'pull_request' && !contains(github.event.pull_request.labels.*.name, 'full-ci')) && '["ubuntu-latest"]' || '["ubuntu-latest", "macos-latest", "windows-latest"]') }}
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: Build (release)
run: cargo build --release --workspace --locked
- name: Test (release)
run: cargo test --release --workspace
- name: PIN goldens (issues #65, #70)
# `#[ignore]`d because each runs a full E. coli search (~20 s release);
# run explicitly here, on one lane, so they stay required.
if: matrix.os == 'ubuntu-latest'
run: cargo test -p andes --release --test pin_goldens -- --ignored
- name: DDA rescore path goldens
# `#[ignore]`d because each runs a full E. coli search with rescoring;
# run explicitly here, on one lane, so they stay required.
if: matrix.os == 'ubuntu-latest'
run: cargo test -p andes --release --test dda_path_goldens -- --ignored
- name: Source files over the size budget (report)
# Listed files over 1,500 lines and how far each moved; a report, not a gate.
# Files not on the list are gated by `no_new_source_file_over_the_budget`.
if: matrix.os == 'ubuntu-latest'
run: cargo test -p andes --release --test structure -- --ignored report_listed_files_over_the_budget --nocapture
- name: Functions over the length budget (report)
# Listed functions over 300 lines and how far each moved; a report, not a gate.
# Functions not on the list are gated by `no_new_function_over_the_budget`.
if: matrix.os == 'ubuntu-latest'
run: cargo test -p andes --release --test structure -- --ignored report_listed_functions_over_the_budget --nocapture
- name: onnx-infer (tract + fixture models)
# Default workspace test builds onnx-infer without engines. Tract is
# opt-in; this lane exercises committed fixtures (double, intensity_mlp)
# and always-on contracts (feature names, PeptDeep packing, manifests).
run: cargo test -p onnx-infer --release --features tract
lint:
name: Lint (clippy + rustfmt)
runs-on: ubuntu-latest
# Clippy is REQUIRED after the PR-Q1 cleanup sweep (2026-05-26).
# Rustfmt remains advisory until a future fmt-clean sweep lands
# (~11k lines of cosmetic churn pending; tracked separately).
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
with:
components: clippy, rustfmt
- name: Benchmark evaluator tests (Python, stdlib only)
run: python3 -I docs/benchmarks/tests/test_entrap.py
- name: Cache cargo
uses: Swatinem/rust-cache@v2
- name: rustfmt
run: cargo fmt --all -- --check
continue-on-error: true
- name: clippy
run: cargo clippy --locked --workspace --all-targets -- -D warnings
benchmarks:
name: Benchmarks (Python)
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install Python packages
run: python3 -m pip install numpy pandas scipy pyarrow
- name: Benchmark tables match docs/benchmarks/results
run: python3 -I docs/benchmarks/render.py --check
- name: Benchmark page links and anchors
run: python3 -I docs/benchmarks/check_links.py
- name: Entrapment rules
run: python3 -I docs/benchmarks/tests/test_entrap.py
- name: ProteoBench converter
run: python3 -I docs/benchmarks/tests/test_proteobench_convert.py
- name: Truth-design smoke
run: python3 tests/test_smoke.py
working-directory: docs/benchmarks/quant-eval
- name: Board metrics
run: python3 tests/test_board_metrics.py
working-directory: docs/benchmarks/quant-eval
- name: Comparison
run: python3 tests/test_compare.py
working-directory: docs/benchmarks/quant-eval