Skip to content

Commit

Permalink
Run tests against Django 4.1, 4.2, and 5.0
Browse files Browse the repository at this point in the history
And exclude combinations of Django and Python that Django doesn't
support.
  • Loading branch information
michael-k committed Feb 28, 2024
1 parent 62d0aab commit 8387552
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
17 changes: 16 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,22 @@ jobs:
fail-fast: false
matrix:
python-version: [3.8, 3.9, "3.10", "3.11", "3.12"]
django-version: [-main, "4.0"]
django-version: [-main, "5.0", "4.2", "4.1", "4.0"]
exclude:
- python-version: "3.8"
django-version: -main
- python-version: "3.8"
django-version: "5.0"
- python-version: "3.9"
django-version: -main
- python-version: "3.9"
django-version: "5.0"
- python-version: "3.12"
django-version: "4.2"
- python-version: "3.12"
django-version: "4.1"
- python-version: "3.12"
django-version: "4.0"

steps:
- uses: actions/checkout@v3
Expand Down
9 changes: 6 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@ envlist =
pylint
readme
py{37,38,39}-django{22,30,31,32}
py{38,39,310,311}-django{40,41,42}
py{38,39,310,311}-django{40,41}
py{38,39,310,311,312}-django{42}
py{310,311,312}-django{50,-main}

requires =
pip >=21.0.1
Expand All @@ -21,7 +23,7 @@ commands =
flake8: flake8 pylint_django/
pylint: pylint pylint_django
readme: bash -c "poetry build && twine check dist/*"
py{37,38,39,310,311}-django{22,30,31,32,40,41,42}: bash scripts/test.sh --cov=pylint_django
django{22,30,31,32,40,41,42,50,-main}: bash scripts/test.sh --cov=pylint_django
clean: find . -type f -name '*.pyc' -delete
clean: find . -type d -name __pycache__ -delete
clean: rm -rf build/ .cache/ dist/ .eggs/ pylint_django.egg-info/ .tox/
Expand All @@ -38,6 +40,7 @@ deps =
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<4.3
django50: Django>=5.0,<5.1
django-main: Django
django-main: git+https://github.com/pycqa/astroid@main
django-main: git+https://github.com/pycqa/pylint@main
Expand All @@ -47,6 +50,6 @@ setenv =
allowlist_externals =
django_not_installed: bash
readme: bash
py{37,38,39,310,311}-django{22,30,31,32,40,41,42}: bash
django{22,30,31,32,40,41,42,50,-main}: bash
clean: find
clean: rm

0 comments on commit 8387552

Please sign in to comment.