feat: add llama backend + thinking loop detection for cross-platform … #53
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: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: astral-sh/setup-uv@v4 | |
| - run: uvx ruff check . | |
| test: | |
| strategy: | |
| matrix: | |
| python-version: ["3.11", "3.14"] | |
| os: [macos-latest] | |
| fail-fast: false | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - uses: astral-sh/setup-uv@v4 | |
| - name: Install dependencies | |
| run: | | |
| uv venv | |
| uv pip install -e ".[dev]" | |
| uv pip install mlx mlx-lm || echo "mlx not available (non-ARM runner)" | |
| - name: Run tests | |
| run: | | |
| if [ -d "pipeline/tests" ]; then | |
| uv run pytest pipeline/tests/ -v -k "not mlx" --ignore-glob="*mlx*" || true | |
| python3 pipeline/tests/test_phase2.py || true | |
| fi |