Skip to content

Declare the Codex adapter, and pick Claude's review by login #1624

Declare the Codex adapter, and pick Claude's review by login

Declare the Codex adapter, and pick Claude's review by login #1624

Workflow file for this run

name: test
on:
pull_request: {}
push:
branches:
- master
jobs:
test:
runs-on: ubuntu-latest
services:
postgres:
image: ${{ matrix.postgres-image }}
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: plain
ports:
- 5432:5432
options: >-
--health-cmd="pg_isready -U postgres"
--health-interval=10s
--health-timeout=5s
--health-retries=5
strategy:
# Test the floor (16, the minimum we enforce) and the latest Postgres,
# since our introspection/health checks lean heavily on system catalogs
# that drift across major versions.
matrix:
include:
- python-version: "3.13"
postgres-image: "postgres:16"
- python-version: "3.14"
postgres-image: "postgres:16"
- python-version: "3.14"
postgres-image: "postgres:18"
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
- name: Set up Python
run: uv python install ${{ matrix.python-version }}
- name: Test (PostgreSQL)
run: ./scripts/test
env:
PLAIN_POSTGRES_URL: postgres://postgres:postgres@localhost:5432/plain
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v2
- name: Set up Python
run: uv python install
- run: uv sync
- run: uv run plain-code check . --skip-ty
- run: ./scripts/type-validate
- run: ./scripts/test-package-imports