Skip to content

Commit

Permalink
Compatibility GitHub Actions / tox
Browse files Browse the repository at this point in the history
  • Loading branch information
ronanboiteau committed Apr 18, 2024
1 parent 97dc88c commit 4989798
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 6 deletions.
13 changes: 11 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 .)
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
6 changes: 3 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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,
Expand Down

0 comments on commit 4989798

Please sign in to comment.