Skip to content

Commit

Permalink
Update tests for Django 4.2
Browse files Browse the repository at this point in the history
* Adds Django 4.2 to test runner
* Adds Python 3.11 and 3.12 to test runner
* Updates how we run coverage to be a little more stable across python versions
* Adds a .coveragerc file to configure coverage to ignore test files in reporting
  • Loading branch information
andyzickler authored and davedash committed Oct 25, 2023
1 parent 8257d1a commit 876363c
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[run]
source = fixture_magic

[report]
omit =
tests
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@
'Framework :: Django :: 3.2',
'Framework :: Django :: 4.0',
'Framework :: Django :: 4.1',
'Framework :: Django :: 4.2',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Operating System :: OS Independent',
Expand Down
11 changes: 8 additions & 3 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,28 +1,33 @@
[tox]
envlist = py{37,38,39,310}-django{32}
py{39,310}-django{40}
py{39,310}-django{41}
py{39,310,311}-django{41}
py{39,310,311}-django{42}

[travis]
python =
3.7: py37
3.8: py38
3.9: py39
3.10: py310
3.11: py311
3.12: py312

[testenv]
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
PYTHONPATH = {toxinidir}:{toxinidir}/django-fixture-magic:{toxinidir}/tests

commands =
coverage run --source='.' {envbindir}/django-admin test
coverage run -m django test --settings=tests.settings
coverage report

allowlist_externals =
django-admin
coverage

deps =
coverage
django32: Django>=3.2,<4.0
django40: Django>=4.0,<4.1
django41: Django>=4.1,<4.2
django42: Django>=4.2,<5.0

0 comments on commit 876363c

Please sign in to comment.