From 4a0a7db2e17a6c7c0cf32136c89f948586f86ccc Mon Sep 17 00:00:00 2001 From: Mark Bird Date: Wed, 25 Feb 2026 13:50:22 +0000 Subject: [PATCH] Add Django 5.2 and 6.0 to test matrix, remove Python 3.8 and 3.9 --- .github/workflows/ci.yml | 41 +++++++++++++++++++++------------------- README.md | 2 +- dev-requirements.txt | 6 +++--- 3 files changed, 26 insertions(+), 23 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 12898a4..ceb2099 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -4,30 +4,33 @@ on: [pull_request] jobs: build: - runs-on: ubuntu-latest strategy: matrix: - python: ["3.8", "3.9", "3.10", "3.11"] - django: ["3.2", "4.0", "4.1", "4.2"] + python: ["3.10", "3.11", "3.12", "3.13", "3.14"] + django: ["4.2", "5.2", "6.0"] exclude: + - python: "3.13" + django: "4.2" + - python: "3.14" + django: "4.2" + - python: "3.10" + django: "6.0" - python: "3.11" - django: "3.2" - - python: "3.11" - django: "4.0" + django: "6.0" steps: - - uses: actions/checkout@v2 - - name: Set up Python ${{ matrix.python }} - uses: actions/setup-python@v2 - with: - python-version: ${{ matrix.python }} - - name: Install package - run: pip install -e . - - name: Install dependencies - run: pip install -r dev-requirements.txt - - name: Install Django - run: pip install -U django==${{ matrix.django }} - - name: Run tests - run: ./runtests + - uses: actions/checkout@v6 + - name: Set up Python ${{ matrix.python }} + uses: actions/setup-python@v6 + with: + python-version: ${{ matrix.python }} + - name: Install package + run: pip install -e . + - name: Install dependencies + run: pip install -r dev-requirements.txt + - name: Install Django + run: pip install -U django==${{ matrix.django }} + - name: Run tests + run: ./runtests diff --git a/README.md b/README.md index 52dcc44..a3fe811 100644 --- a/README.md +++ b/README.md @@ -7,7 +7,7 @@ Sometimes, it's unavoidable that multiple URLs point at the same app - for examp This is a simple Django middleware that redirects all traffic from hosts other than the one(s) you specify to your canonical URL. -Tested against Django 3.2 and 4.0, 4.1 and 4.2 on Python 3.8, 3.9, 3.10 and 3.11. +Tested against Django 4.2, 5.2 and 6.0 on Python 3.10, 3.11, 3.12, 3.13 and 3.14. ### Installation diff --git a/dev-requirements.txt b/dev-requirements.txt index ce1e046..1052d6c 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -1,3 +1,3 @@ -black==22.3.0 -flake8==4.0.1 -isort==5.10.1 +black==26.1.0 +flake8==7.3.0 +isort==8.0.0