Merge pull request #23 from rlippmann/codex/repl-polish #79
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@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v3 | |
| with: | |
| enable-cache: true | |
| - name: Install dev dependencies | |
| run: uv sync --group dev | |
| - name: Ruff (lint) | |
| run: uv run ruff check . | |
| - name: Ruff (format) | |
| run: uv run ruff format --check . | |
| - name: Mypy | |
| run: uv run mypy src | |
| - 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@v4 | |
| with: | |
| name: coverage-python-${{ matrix.python-version }} | |
| path: | | |
| coverage.xml | |
| htmlcov/ | |
| if-no-files-found: ignore |