Skip to content

Add support for Django 5.2 and bump version to 0.0.13 #99

Add support for Django 5.2 and bump version to 0.0.13

Add support for Django 5.2 and bump version to 0.0.13 #99

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Test
on:
push:
pull_request:
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
psycopg-package: ["psycopg2", "psycopg"]
python-version: ["3.9", "3.10", "3.11"]
django-version: ["4.0", "4.1", "4.2", "5.0", "5.1", "5.2"]
exclude:
- python-version: "3.9"
django-version: "5.0"
- python-version: "3.9"
django-version: "5.1"
- python-version: "3.9"
django-version: "5.2"
- django-version: "4.0"
psycopg-package: "psycopg"
max-parallel: 20
services:
postgres:
image: postgres:14
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install uv and dependencies
run: |
curl -LsSf https://astral.sh/uv/install.sh | sh
source "$HOME/.cargo/env"
# Install main dependencies, dev dependencies, and the specific Django version for the matrix
# Using -e .[dev] installs the current package in editable mode with dev extras
uv pip install --system -e .[dev]
pip install Django==${{ matrix.django-version }}
pip install ${{ matrix.psycopg-package }}
- name: Run tests
run: |
./check-lint.sh
python manage.py test -v 3 --no-input