Skip to content

Commit 5dc081a

Browse files
committed
ci: add GitHub Actions workflow on self-hosted Apple Silicon runners
Adds lint (ruff) and pytest jobs running on the OSPO-provisioned [self-hosted, macos, tahoe, ARM64] runners; the DSL/composite tests require Metal + MLX on Apple Silicon. Jobs are guarded to apple/coreai-torch so forks can't claim the self-hosted pool.
1 parent 7171b3b commit 5dc081a

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: CI
2+
3+
on:
4+
pull_request:
5+
branches: [main]
6+
push:
7+
branches: [main]
8+
9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
lint:
15+
if: github.repository == 'apple/coreai-torch'
16+
runs-on: [self-hosted, macos, tahoe, ARM64]
17+
timeout-minutes: 15
18+
steps:
19+
- uses: actions/checkout@v4
20+
- uses: astral-sh/setup-uv@v4
21+
- run: uv run --extra dev ruff check .
22+
- run: uv run --extra dev ruff format --check .
23+
24+
python-test:
25+
if: github.repository == 'apple/coreai-torch'
26+
runs-on: [self-hosted, macos, tahoe, ARM64]
27+
timeout-minutes: 60
28+
steps:
29+
- uses: actions/checkout@v4
30+
- uses: astral-sh/setup-uv@v4
31+
- run: uv run --extra test pytest tests/ -n auto -m "not slow"

0 commit comments

Comments
 (0)