From 93dfe02a60239e4e5bd325cd524d79b94ac62c3e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nguy=E1=BB=85n=20H=E1=BB=93ng=20Qu=C3=A2n?= Date: Sun, 24 Dec 2023 22:53:49 +0700 Subject: [PATCH] Test with Django v5 and Python 3.12 --- .github/workflows/test.yml | 4 ++-- pyproject.toml | 1 + tox.ini | 3 +++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 7485bea..cff4b0d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,7 +9,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - - uses: actions/setup-python@v4 + - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Install Poetry @@ -22,4 +22,4 @@ jobs: run: tox strategy: matrix: - python-version: [3.8, 3.9, '3.10', 3.11] + python-version: [3.8, 3.9, '3.10', 3.11, 3.12] diff --git a/pyproject.toml b/pyproject.toml index d686483..cc327b9 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,6 +14,7 @@ classifiers = [ "Framework :: Django :: 4.0", "Framework :: Django :: 4.1", "Framework :: Django :: 4.2", + "Framework :: Django :: 5.0", "Environment :: Web Environment", "Topic :: Software Development :: Libraries :: Python Modules" ] diff --git a/tox.ini b/tox.ini index 39d1d23..47df842 100644 --- a/tox.ini +++ b/tox.ini @@ -5,6 +5,7 @@ envlist= test-py{39,310}-dj40 test-py{39,310}-dj41 test-py{310,311}-dj42 + test-py{311,312}-dj50 [testenv] deps= @@ -12,6 +13,7 @@ deps= dj40: Django>=4.0,<4.1 dj41: Django>=4.1,<4.2 dj42: Django>=4.2,<4.3 + dj50: Django>=5.0,<5.1 test: pytest pytest-env skip_install=true @@ -26,3 +28,4 @@ python = 3.9: py39 3.10: py310 3.11: py311 + 3.12: py312