Skip to content

Commit 37ff576

Browse files
authored
Merge pull request #48 from imbue-ai/sculptor/add-github-ci-test-gate
Add integration test workflow for mngr
2 parents f23d8f5 + 7cfe39a commit 37ff576

File tree

1 file changed

+68
-0
lines changed

1 file changed

+68
-0
lines changed

.github/workflows/integration.yml

Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
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: "f96fc0ea2115778c38e6685cd1d621a43b9ad9e1"
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+
uv venv .venv --clear
58+
uv sync --all-packages
59+
uv tool install -e libs/mngr
60+
61+
- name: Run integration test
62+
working-directory: mngr
63+
env:
64+
MODAL_TOKEN_ID: ${{ secrets.MODAL_TOKEN_ID }}
65+
MODAL_TOKEN_SECRET: ${{ secrets.MODAL_TOKEN_SECRET }}
66+
run: |
67+
source .venv/bin/activate
68+
just test-offload

0 commit comments

Comments
 (0)