Skip to content

feat: Rework the Python SDK #4

feat: Rework the Python SDK

feat: Rework the Python SDK #4

Workflow file for this run

name: ci
on:
pull_request:
branches: [prod-staging, prod-stable]
push:
branches: [prod-staging]
concurrency:
group: ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Sync dependencies
run: uv sync --frozen || uv sync
- name: Ruff lint
run: uv run ruff check .
- name: Ruff format check
run: uv run ruff format --check .
- name: Type-check
run: uv run mypy
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
enable-cache: true
- name: Run the test suite
run: uv run --python ${{ matrix.python-version }} pytest