mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-05 23:00:17 +00:00
e7776eb9e8
- Bump version to 3.0.0 - Replace deprecated starlette.middleware.wsgi with a2wsgi - Pin starlette[full]>=0.40, add a2wsgi dependency - Bump minimum Python to 3.9, drop 3.7/3.8 support - Remove whitenoise conditional (Python <3.8 no longer supported) - Clean up CI matrix: drop old Python versions and OS exclusions - Fix deprecated httpx TestClient usage in tests (data= -> content=, per-request cookies) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
98 lines
2.1 KiB
YAML
98 lines
2.1 KiB
YAML
name: "Tests"
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request: ~
|
|
workflow_dispatch:
|
|
|
|
# Cancel redundant in-progress jobs.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
|
|
test-full:
|
|
name: "Full: Python ${{ matrix.python-version }} on ${{ matrix.os }}"
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: [
|
|
"ubuntu-latest",
|
|
"macos-latest",
|
|
"windows-latest",
|
|
]
|
|
python-version: [
|
|
"3.9",
|
|
"3.10",
|
|
"3.11",
|
|
"3.12",
|
|
"3.13",
|
|
"pypy3.10",
|
|
]
|
|
env:
|
|
UV_SYSTEM_PYTHON: true
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
architecture: x64
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@v5
|
|
with:
|
|
version: "latest"
|
|
enable-cache: true
|
|
cache-suffix: ${{ matrix.python-version }}
|
|
cache-dependency-glob: |
|
|
pyproject.toml
|
|
|
|
- name: Install and validate package
|
|
run: |
|
|
uv pip install '.[full,develop,test]'
|
|
poe check
|
|
|
|
|
|
test-minimal:
|
|
name: "Minimal: Python ${{ matrix.python-version }} on ${{ matrix.os }}"
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
os: ["ubuntu-latest"]
|
|
python-version: ["3.13"]
|
|
env:
|
|
UV_SYSTEM_PYTHON: true
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
architecture: x64
|
|
|
|
- name: Set up uv
|
|
uses: astral-sh/setup-uv@v5
|
|
with:
|
|
version: "latest"
|
|
enable-cache: true
|
|
cache-suffix: ${{ matrix.python-version }}
|
|
cache-dependency-glob: |
|
|
pyproject.toml
|
|
|
|
- name: Install and validate package
|
|
run: |
|
|
uv pip install '.[develop,test]'
|
|
poe check
|