Skip to content

Merge pull request #2 from raspoli/fix/model-startup-timeout-loop #4

Merge pull request #2 from raspoli/fix/model-startup-timeout-loop

Merge pull request #2 from raspoli/fix/model-startup-timeout-loop #4

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
# MLX requires Apple Silicon — run on macOS ARM64 runners
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --locked --extra dev --extra all
- name: Lint
run: uv run ruff check src/
- name: Format check
run: uv run ruff format --check src/ tests/
- name: Test
run: uv run pytest tests/ -v
- name: Minimize uv cache
run: uv cache prune --ci
build:
runs-on: macos-latest
needs: test
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Build package
run: uv build
- name: Verify wheel contents
run: |
ls -la dist/
uv run python -c "
import zipfile, pathlib
whl = list(pathlib.Path('dist').glob('*.whl'))[0]
print(f'Wheel: {whl.name}')
for f in sorted(zipfile.ZipFile(whl).namelist()):
print(f' {f}')
"