diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5d40d951..eca9e64d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,8 +19,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-20.04] - python-version: [3.8, 3.12] - toxenv: [django42, quality, translations-django42] + toxenv: [py38-django42, py311-django42, py312-django42, py38-quality, py311-quality, py312-quality, translations] steps: - name: checkout repo @@ -28,10 +27,20 @@ jobs: with: submodules: recursive + - name: Extract the Python version from tox environment + run: | + if [[ "${{ matrix.toxenv }}" =~ py[0-9]+ ]]; then + PYTHON_VERSION=$(echo "${{ matrix.toxenv }}" | sed -E 's/py([0-9])([0-9]+).*/\1.\2/') + else + # Default version + PYTHON_VERSION=3.8 + fi + echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV + - name: setup python uses: actions/setup-python@v4 with: - python-version: ${{ matrix.python-version }} + python-version: ${{ env.PYTHON_VERSION }} - name: Install translations dependencies if: ${{ startsWith(matrix.toxenv, 'translations') }} diff --git a/setup.py b/setup.py index 0a8aa5ad..7381f0e4 100644 --- a/setup.py +++ b/setup.py @@ -118,6 +118,7 @@ def package_data(pkg, root_list): classifiers=[ 'Programming Language :: Python', 'Programming Language :: Python :: 3.8', + 'Programming Language :: Python :: 3.11', 'Programming Language :: Python :: 3.12', 'Framework :: Django', 'Framework :: Django :: 4.2', diff --git a/tox.ini b/tox.ini index 06ed9963..864a101a 100644 --- a/tox.ini +++ b/tox.ini @@ -1,5 +1,5 @@ [tox] -envlist = py{38, 312}-django{42},quality,translations-django{42} +envlist = py{38,311,312}-django{42},py{38,311,312}-quality,translations [pycodestyle] exclude = .git,.tox @@ -34,7 +34,7 @@ commands = pylint drag_and_drop_v2 pylint tests --rcfile=tests/pylintrc -[testenv:translations-django42] +[testenv:translations] allowlist_externals = make deps =