Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
41 changes: 22 additions & 19 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
6 changes: 3 additions & 3 deletions dev-requirements.txt
Original file line number Diff line number Diff line change
@@ -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