-
Notifications
You must be signed in to change notification settings - Fork 101
104 lines (82 loc) · 2.61 KB
/
ci.yml
File metadata and controls
104 lines (82 loc) · 2.61 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
name: CI
on:
pull_request:
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache protoc
uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/protoc
key: protoc-${{ runner.os }}-${{ runner.arch }}-v28.3
- uses: arduino/setup-protoc@v3
continue-on-error: true
with:
version: "28.3"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@stable
with:
components: rustfmt, clippy
- run: cargo fmt --check
- run: cargo clippy -- -D warnings
- run: cargo test
version-sync:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: bash scripts/check-version-sync.sh
climb-hygiene:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: bash scripts/check-no-climb-tracked.sh
contracts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache protoc
uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/protoc
key: protoc-${{ runner.os }}-${{ runner.arch }}-v28.3
- uses: arduino/setup-protoc@v3
continue-on-error: true
with:
version: "28.3"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v4
- run: cargo build --release --locked
- run: uv sync --extra dev
- run: uv run pytest tests/ -v --mcp-cmd "./target/release/biomcp serve"
- run: uv run mkdocs build --strict
# Stable PR-blocking executable spec gate. Volatile live-network headings
# are excluded here and covered by spec-smoke.yml.
spec-stable:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Cache protoc
uses: actions/cache@v4
with:
path: ${{ runner.tool_cache }}/protoc
key: protoc-${{ runner.os }}-${{ runner.arch }}-v28.3
- uses: arduino/setup-protoc@v3
continue-on-error: true
with:
version: "28.3"
repo-token: ${{ secrets.GITHUB_TOKEN }}
- uses: dtolnay/rust-toolchain@stable
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v4
# Build the release binary first so make spec exercises target/release/biomcp,
# not a stale editable install from .venv/bin.
- run: cargo build --release --locked
- run: make spec-pr