Skip to content

ci: bump actions/checkout from 5.1.0 to 7.0.1 #74

ci: bump actions/checkout from 5.1.0 to 7.0.1

ci: bump actions/checkout from 5.1.0 to 7.0.1 #74

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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
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
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
with:
enable-cache: true
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
with:
node-version: 22
# The OpenCode version is pinned by hash in .github/live/package-lock.json.
- run: npm ci --prefix .github/live
- run: echo "$GITHUB_WORKSPACE/.github/live/node_modules/.bin" >> "$GITHUB_PATH"
- 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@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@1c37ad07a6a961277cf70c0d37d6f313000f5884 # v10.3.0
- run: uv build
- run: uvx twine check --strict dist/*
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
with:
name: dist
path: dist/
fuzz:
name: Fuzz SSE decoder
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
with:
python-version: "3.12"
- run: uv sync --locked
- run: uv run --with atheris python fuzz/fuzz_sse.py -max_total_time=60