Skip to content

Commit 3b0d59e

Browse files
committed
ci: run MLX contracts on self-hosted runners
1 parent a7c6c10 commit 3b0d59e

1 file changed

Lines changed: 62 additions & 0 deletions

File tree

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
name: CppMega MLX self-hosted CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
concurrency:
11+
group: cppmega-mlx-ci-${{ github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
mac-contracts:
16+
name: macOS MLX data, model, and eval contracts
17+
runs-on: [self-hosted, macOS, ARM64, cppmega-mlx-macos]
18+
timeout-minutes: 30
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Run focused MLX contract suite
22+
shell: bash
23+
run: |
24+
set -euo pipefail
25+
python_bin=/Volumes/external/sources/cppmega.mlx/.venv/bin/python
26+
test -x "${python_bin}"
27+
"${python_bin}" -m pytest -q \
28+
tests/test_ast_fim.py \
29+
tests/test_audit_sidecar_parquet.py \
30+
tests/test_cpp_jsonl_generation_compile_eval.py \
31+
tests/test_domain_graph_routes.py \
32+
tests/test_eval_domain_routed_codegen.py \
33+
tests/test_inference_generation.py \
34+
tests/test_megatron_indexed.py \
35+
tests/test_pack_enriched_rows.py \
36+
tests/test_streaming_conveyor_progress.py \
37+
tests/test_process_commits_fail_loud.py \
38+
tests/test_repair_packed_document_boundaries.py
39+
git diff --check
40+
41+
linux-portable:
42+
name: Linux portable conveyor contracts
43+
runs-on: [self-hosted, Linux, X64, cppmega-mlx]
44+
timeout-minutes: 20
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: actions/setup-python@v5
48+
with:
49+
python-version: "3.13"
50+
- name: Install portable test dependencies
51+
run: python -m pip install --disable-pip-version-check pytest numpy pyarrow tokenizers zstandard
52+
- name: Run portable script contracts
53+
shell: bash
54+
run: |
55+
set -euo pipefail
56+
python -m pytest -q \
57+
tests/test_audit_sidecar_parquet.py \
58+
tests/test_pack_enriched_rows.py \
59+
tests/test_streaming_conveyor_progress.py \
60+
tests/test_process_commits_fail_loud.py \
61+
tests/test_repair_packed_document_boundaries.py
62+
git diff --check

0 commit comments

Comments
 (0)