-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (48 loc) · 1.65 KB
/
Copy pathci.yml
File metadata and controls
52 lines (48 loc) · 1.65 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
name: ci
on:
push:
branches: [main]
pull_request:
jobs:
rust:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: syncer
- run: cargo test --manifest-path syncer/Cargo.toml
python:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- uses: dtolnay/rust-toolchain@stable
- uses: Swatinem/rust-cache@v2
with:
workspaces: syncer
- name: Install CPU torch and deps
run: |
pip install torch --index-url https://download.pytorch.org/whl/cpu
pip install pytest pytest-timeout transformers==4.57.1 datasets peft cloudpickle "skypilot[aws]"
- name: Tests (includes live syncer+learner integration loop)
run: python -m pytest tests/ -q
gpu:
runs-on: [self-hosted, gpu]
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Ensure CI venv (persisted outside the workspace; checkout cleans the tree)
run: |
VENV="$HOME/.cache/yeto-ci-venv"
if [ ! -x "$VENV/bin/python" ]; then
python3 -m venv "$VENV"
"$VENV/bin/pip" install --upgrade pip
fi
"$VENV/bin/pip" install --quiet torch pytest pytest-timeout transformers==4.57.1 datasets peft cloudpickle
echo "$VENV/bin" >> "$GITHUB_PATH"
- name: GPU smoke test (SmolLM2-135M, real syncer + real learners on CUDA)
run: python -m pytest tests/test_gpu_smollm.py -q