Skip to content

Commit 1ccbd87

Browse files
DanverImbueclaudeSculptor
committed
Add integration test workflow for mngr
Adds a separate CI job that tests offload against a golden version of the imbue-ai/mngr repository. The workflow: 1. Checks out both offload (current) and mngr (golden SHA) 2. Installs Rust, just, and uv for dependencies 3. Installs the current version of offload via `just install` 4. Installs mngr dependencies 5. Runs `just test-offload` in the mngr repo Configuration: - MNGR_SHA env var at top of file controls the golden version - Requires MNGR_ACCESS_TOKEN secret for private repo access 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com> Co-authored-by: Sculptor <sculptor@imbue.com>
1 parent f842614 commit 1ccbd87

File tree

1 file changed

+66
-0
lines changed

1 file changed

+66
-0
lines changed

.github/workflows/integration.yml

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Integration
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
workflow_dispatch:
9+
10+
env:
11+
CARGO_TERM_COLOR: always
12+
# Golden version of mngr to test against
13+
# Update this SHA when mngr changes in a way that affects offload integration
14+
MNGR_SHA: "REPLACE_WITH_GOLDEN_SHA"
15+
16+
jobs:
17+
integration:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- name: Checkout offload
22+
uses: actions/checkout@v4
23+
with:
24+
path: offload
25+
26+
- name: Checkout mngr (golden version)
27+
uses: actions/checkout@v4
28+
with:
29+
repository: imbue-ai/mngr
30+
ref: ${{ env.MNGR_SHA }}
31+
token: ${{ secrets.MNGR_ACCESS_TOKEN }}
32+
path: mngr
33+
34+
- name: Install Rust stable
35+
uses: dtolnay/rust-toolchain@stable
36+
37+
- name: Install just
38+
uses: taiki-e/install-action@v2
39+
with:
40+
tool: just
41+
42+
- name: Install uv (Python package manager)
43+
uses: astral-sh/setup-uv@v4
44+
45+
- name: Cache Rust dependencies
46+
uses: Swatinem/rust-cache@v2
47+
with:
48+
workspaces: offload
49+
50+
- name: Install offload (current version)
51+
working-directory: offload
52+
run: just install
53+
54+
- name: Install mngr dependencies
55+
working-directory: mngr
56+
run: |
57+
if [ -f "requirements.txt" ]; then
58+
uv pip install --system -r requirements.txt
59+
fi
60+
if [ -f "pyproject.toml" ]; then
61+
uv pip install --system -e .
62+
fi
63+
64+
- name: Run integration test
65+
working-directory: mngr
66+
run: just test-offload

0 commit comments

Comments
 (0)