docs: clarify ollama smoke command #833
Workflow file for this run
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: | |
| pull_request: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install dev dependencies | |
| run: uv sync --extra dev | |
| - name: Ruff (lint) | |
| run: uv run ruff check . | |
| - name: Ruff (format) | |
| run: uv run ruff format --check . | |
| - name: Install mypy integration dependencies | |
| run: uv pip install --python .venv/bin/python litellm pydantic | |
| - name: Mypy | |
| run: uv run mypy src examples evals/swe-bench demos | |
| - name: Install Hypothesis for tests | |
| run: uv pip install --python .venv/bin/python hypothesis | |
| - name: Install coverage tooling | |
| run: uv pip install --python .venv/bin/python pytest-cov | |
| - name: Pytest | |
| run: uv run pytest --cov=context_compiler --cov-report=term --cov-report=xml:coverage.xml --cov-report=html:htmlcov | |
| - name: Upload coverage report | |
| if: always() | |
| uses: actions/upload-artifact@v7 | |
| with: | |
| name: coverage-python-${{ matrix.python-version }} | |
| path: | | |
| coverage.xml | |
| htmlcov/ | |
| if-no-files-found: ignore | |
| contract-repl-coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install dev dependencies | |
| run: uv sync --extra dev | |
| - name: Contract tests with strict REPL coverage gate (100%) | |
| run: uv run pytest -m contract --cov=context_compiler.repl --cov-report=term-missing --cov-fail-under=100 | |
| contract-engine-coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install dev dependencies | |
| run: uv sync --extra dev | |
| - name: Contract tests with strict engine/checkpoint coverage gate (100%) | |
| run: uv run pytest -m contract --cov=context_compiler.engine --cov-report=term-missing --cov-fail-under=100 | |
| contract-controller-coverage: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| - name: Set up Python 3.12 | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.12" | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Install dev dependencies | |
| run: uv sync --extra dev | |
| - name: Contract tests with strict controller coverage gate (100%) | |
| run: uv run pytest -m contract --cov=context_compiler.controller --cov-report=term-missing --cov-fail-under=100 |