-
-
Notifications
You must be signed in to change notification settings - Fork 95
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 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
1 parent
8257d1a
commit 876363c
Showing
3 changed files
with
15 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[run] | ||
source = fixture_magic | ||
|
||
[report] | ||
omit = | ||
tests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |