From 08d9cf0978f6c911417f13f441773ac569905a63 Mon Sep 17 00:00:00 2001 From: Tom Parker-Shemilt Date: Thu, 10 Oct 2024 23:00:30 +0100 Subject: [PATCH] Add Python 3.13 and Django 5.1 testing (#255) * Add Python 3.13 and Django 5.1 testing * Upgrade to modern actions --- .github/workflows/release.yml | 4 ++-- .github/workflows/test.yml | 20 +++++++++++--------- setup.py | 3 ++- 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2f809ef..cf6563f 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,12 +11,12 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 with: fetch-depth: 0 - name: Set up Python - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.10' diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 30ea045..b554c12 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -6,8 +6,8 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] - django-version: ["3.2", "4.2", "5.0"] + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"] + django-version: ["3.2", "4.2", "5.1"] exclude: # Python 3.7 is not compatible with 4.1 - python-version: "3.7" @@ -17,19 +17,21 @@ jobs: django-version: "3.2" - python-version: "3.12" django-version: "3.2" - # django 5.0 is not compatible with python 3.9 or lower + - python-version: "3.13" + django-version: "3.2" + # django 5.x is not compatible with python 3.9 or lower - python-version: "3.7" - django-version: "5.0" + django-version: "5.1" - python-version: "3.8" - django-version: "5.0" + django-version: "5.1" - python-version: "3.9" - django-version: "5.0" + django-version: "5.1" steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v3 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} cache: 'pip' @@ -51,7 +53,7 @@ jobs: coverage report coverage xml - - uses: codecov/codecov-action@v3 + - uses: codecov/codecov-action@v4 - name: Check types installation run: | diff --git a/setup.py b/setup.py index c69e8fa..6a7cca4 100644 --- a/setup.py +++ b/setup.py @@ -31,7 +31,7 @@ "Framework :: Django", "Framework :: Django :: 3.2", "Framework :: Django :: 4.2", - "Framework :: Django :: 5.0", + "Framework :: Django :: 5.1", "Intended Audience :: Developers", "License :: OSI Approved :: BSD License", "Operating System :: OS Independent", @@ -46,5 +46,6 @@ "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", + "Programming Language :: Python :: 3.13", ], )