Repository navigation
Bump peter-evans/create-pull-request from 7 to 8 #3
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: | |
| branches: [main] | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Lint, types, generated code | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - run: uv sync --locked | |
| - run: uv run ruff check . | |
| - run: uv run ruff format --check . | |
| - run: uv run pyright | |
| - run: uv run mypy | |
| - name: Generated code matches spec/contract.json | |
| run: uv run python -m codegen --check | |
| test: | |
| name: Test (Python ${{ matrix.python }}, ${{ matrix.os }}) | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest] | |
| python: ["3.10", "3.11", "3.12", "3.13", "3.14"] | |
| include: | |
| - os: macos-latest | |
| python: "3.13" | |
| - os: windows-latest | |
| python: "3.13" | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| python-version: ${{ matrix.python }} | |
| - run: uv sync --locked | |
| - run: uv run pytest -m "not live" --cov --cov-report=term-missing | |
| lowest: | |
| name: Test with lowest supported dependencies | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| python-version: "3.10" | |
| - run: >- | |
| uv run --isolated --resolution lowest-direct --with-editable . | |
| --with pytest --with respx --with trio | |
| pytest -m "not live" -p no:cacheprovider | |
| live: | |
| name: Live server (OpenCode ${{ matrix.opencode }}) | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| opencode: ["2.1.2"] | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: astral-sh/setup-uv@v6 | |
| with: | |
| enable-cache: true | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: 22 | |
| - run: npm install -g @opencode/cli@${{ matrix.opencode }} | |
| - run: opencode --version | |
| - run: uv sync --locked | |
| - run: uv run pytest -m live -v | |
| build: | |
| name: Build distributions | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: astral-sh/setup-uv@v6 | |
| - run: uv build | |
| - run: uvx twine check --strict dist/* | |
| - uses: actions/upload-artifact@v4 | |
| with: | |
| name: dist | |
| path: dist/ |