Skip to content

ci: bump actions/download-artifact from 4.3.0 to 8.0.2 #36

ci: bump actions/download-artifact from 4.3.0 to 8.0.2

ci: bump actions/download-artifact from 4.3.0 to 8.0.2 #36

Workflow file for this run

name: CI
on:
pull_request:
workflow_dispatch:
workflow_call: # the release workflow runs CI before publishing
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 '.[pty]'
--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/