Revert "Swap README training visualizer for GIF asset" #45
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: macOS CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| # Minimal permissions — GITHUB_TOKEN can only read repo contents. | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: macos-14 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11"] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - name: Setup Python | |
| uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| architecture: 'arm64' | |
| - name: Install dependencies | |
| shell: bash | |
| run: | | |
| python -m pip install --upgrade pip | |
| if command -v uv >/dev/null 2>&1; then | |
| uv pip install -r requirements/requirements.txt | |
| else | |
| pip install -r requirements/requirements.txt | |
| fi | |
| python -m pip install -e '.[dev]' | |
| # torch is excluded from requirements/requirements.txt (platform-specific URL). | |
| # Install the MPS-capable wheel directly for Apple Silicon CI runners. | |
| pip install torch | |
| - name: Smoke import tests | |
| run: | | |
| python - <<'PY' | |
| import gemma_tuner | |
| from gemma_tuner.cli_typer import app | |
| from gemma_tuner.main import main as legacy_main | |
| from gemma_tuner.scripts import evaluate | |
| from gemma_tuner.models.gemma.finetune import main as gemma_finetune | |
| print('OK: package imports') | |
| PY | |
| - name: Legacy shim smoke (help paths) | |
| run: | | |
| python entrypoints/main.py --help | |
| - name: CLI smoke | |
| run: | | |
| gemma-macos-tuner --help |