Skip to content

Commit 51a9766

Browse files
Add GitHub CI workflow for Modal tests
Runs cargo tests on Modal using offload-cargo-modal.toml config. Requires MODAL_TOKEN_ID and MODAL_TOKEN_SECRET secrets. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 4fa075a commit 51a9766

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/test-modal.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Tests (Modal)
2+
3+
on:
4+
push:
5+
branches: [main]
6+
pull_request:
7+
branches: [main]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Install Rust
16+
uses: dtolnay/rust-action@stable
17+
18+
- name: Cache cargo
19+
uses: actions/cache@v4
20+
with:
21+
path: |
22+
~/.cargo/bin/
23+
~/.cargo/registry/index/
24+
~/.cargo/registry/cache/
25+
~/.cargo/git/db/
26+
target/
27+
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
28+
29+
- name: Install uv
30+
uses: astral-sh/setup-uv@v4
31+
32+
- name: Build offload
33+
run: cargo build --release
34+
35+
- name: Run tests on Modal
36+
env:
37+
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
38+
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}
39+
run: ./target/release/offload -c offload-cargo-modal.toml run

0 commit comments

Comments
 (0)