diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 429780b..353deae 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -6,11 +6,20 @@ on: [push] jobs: run_tests: runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"] + steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - name: Set up Python uses: actions/setup-python@v4 - name: Install tox run: pip install tox - name: Use tox to run test suite - run: tox run + run: python -m tox -f py$(echo ${{ matrix.python-version }} | tr -d .) diff --git a/CHANGELOG.md b/CHANGELOG.md index 68bcd34..46a6855 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,8 @@ ## Unreleased +- Lower Django version requirement to 3.0 +- Lower Python version requirement to 3.7 - Add official support for Django 4.0 to 5.0 with: - Addition of automated test coverage - Review of all the built-in template tags and filters (no changes needed) diff --git a/pyproject.toml b/pyproject.toml index d5cb311..2e297f0 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -2,7 +2,7 @@ name = "django_safe_template_engine" version = "1.2.0" dependencies = ["django >= 3.0"] -requires-python = ">=3.8" +requires-python = ">=3.7" authors = [{ name = "Ronan Boiteau", email = "ronan@boiteau.eu" }] maintainers = [{ name = "Ronan Boiteau", email = "ronan@boiteau.eu" }] description = "A Django template engine to render untrusted template code" diff --git a/tox.ini b/tox.ini index f041331..7a653cb 100644 --- a/tox.ini +++ b/tox.ini @@ -1,8 +1,8 @@ [tox] envlist = - {py36, py37, py38, py39}-django30, - {py36, py37, py38, py39}-django31, - {py36, py37, py38, py39, py310}-django32, + {py37, py38, py39}-django30, + {py37, py38, py39}-django31, + {py37, py38, py39, py310}-django32, {py38, py39, py310}-django40, {py38, py39, py310, py311}-django41, {py38, py39, py310, py311, py312}-django42,