Merge pull request #2 from raspoli/fix/model-startup-timeout-loop #4
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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}') | |
| " |