From 2eee1b50ceb5d0d8407c8f450c3fadbb9e6d0686 Mon Sep 17 00:00:00 2001 From: Mike DeSimone Date: Mon, 24 Jul 2023 13:52:37 -0500 Subject: [PATCH] Updated tests to include Django 4.1/2 and Python 3.11. --- .github/workflows/test.yml | 4 +++- tests/requirements/dj41_cms311.txt | 4 ++++ tests/requirements/dj42_cms311.txt | 4 ++++ tox.ini | 6 ++++-- 4 files changed, 15 insertions(+), 3 deletions(-) create mode 100644 tests/requirements/dj41_cms311.txt create mode 100644 tests/requirements/dj42_cms311.txt diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 75907e4..27265ed 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -8,11 +8,13 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ 3.8, 3.9, "3.10"] # latest release minus two + python-version: [ 3.8, 3.9, "3.10", "3.11"] # latest release minus two requirements-file: [ dj32_cms310.txt, dj32_cms311.txt, dj40_cms311.txt, + dj41_cms311.txt, + dj42_cms311.txt, ] os: [ ubuntu-20.04, diff --git a/tests/requirements/dj41_cms311.txt b/tests/requirements/dj41_cms311.txt new file mode 100644 index 0000000..aa83bec --- /dev/null +++ b/tests/requirements/dj41_cms311.txt @@ -0,0 +1,4 @@ +-r base.txt + +Django>=4.1,<4.2 +django-cms>=3.11,<4.0 diff --git a/tests/requirements/dj42_cms311.txt b/tests/requirements/dj42_cms311.txt new file mode 100644 index 0000000..23f2164 --- /dev/null +++ b/tests/requirements/dj42_cms311.txt @@ -0,0 +1,4 @@ +-r base.txt + +Django>=4.2,<5.0 +django-cms>=3.11,<4.0 diff --git a/tox.ini b/tox.ini index 8fd40e7..85902f5 100644 --- a/tox.ini +++ b/tox.ini @@ -2,8 +2,8 @@ envlist = flake8 isort - py{38,39,310}-dj{32}-cms{310,311} - py{38,39,310}-dj{40}-cms{311} + py{38,39,310,311}-dj{32}-cms{310,311} + py{38,39,310,311}-dj{40,41,42}-cms{311} skip_missing_interpreters=True @@ -12,6 +12,8 @@ deps = -r{toxinidir}/tests/requirements/base.txt dj32: Django>=3.2,<4.0 dj40: Django>=4.0,<4.1 + dj41: Django>=4.1,<4.2 + dj42: Django>=4.2,<5.0 cms310: django-cms>=3.10,<3.11 cms311: django-cms>=3.11,<4.0 commands =