feat: migrate bakery examples and fix CG pair table generation #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: Python CI | |
| on: | |
| push: | |
| branches: [main] | |
| paths: | |
| - "python/**" | |
| - ".github/workflows/python-ci.yml" | |
| pull_request: | |
| branches: [main] | |
| paths: | |
| - "python/**" | |
| - ".github/workflows/python-ci.yml" | |
| concurrency: | |
| group: python-ci-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Lint & Format | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Set up Python | |
| run: uv python install 3.13 | |
| - name: Install dependencies | |
| working-directory: python | |
| run: uv sync --extra dev | |
| - name: Ruff lint | |
| working-directory: python | |
| run: uv run ruff check src/ tests/ | |
| - name: Ruff format check | |
| working-directory: python | |
| run: uv run ruff format --check src/ tests/ | |
| typecheck: | |
| name: Type Check | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Set up Python | |
| run: uv python install 3.13 | |
| - name: Install dependencies | |
| working-directory: python | |
| run: uv sync --extra dev | |
| - name: mypy | |
| working-directory: python | |
| run: uv run mypy src/ | |
| test: | |
| name: Tests (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v5 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| run: uv python install ${{ matrix.python-version }} | |
| - name: Install dependencies | |
| working-directory: python | |
| run: uv sync --extra dev | |
| - name: Run tests | |
| working-directory: python | |
| run: uv run pytest --cov=backmap_prep --cov-report=term-missing |