Drop the review config and the check-run plumbing that fed it #1627
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: 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 |