Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Actually run the tests and also run them against Django 4.1-5.0 #428

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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
2 changes: 1 addition & 1 deletion scripts/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ pip install pytest pytest-cov \
"django-tastypie>=0.14.6" \
"djangorestframework>=3.13.1"

python pylint_django/tests/test_func.py -v "$@"
python -m pytest pylint_django/tests/test_func.py -v "$@"
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