Skip to content

Commit 0030a1c

Browse files
committed
Fix tests
1 parent 4f81628 commit 0030a1c

File tree

2 files changed

+27
-10
lines changed

2 files changed

+27
-10
lines changed

demo/settings.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from __future__ import unicode_literals
44

55
DEBUG = True
6-
6+
DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
77
ADMINS = (("Some Admin", "some_admin@example.com"),)
88

99
MANAGERS = ADMINS

tox.ini

+26-9
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,43 @@
11
[tox]
22
envlist =
3-
py{37,38,39}-django{22,30,31}
4-
py{37,38,39,310}-django{32}
5-
py{38,39,310}-django{40}
3+
py{38,39,310,311,312}-dj42
4+
py{310,311,312}-dj{50,main}
65
lint
76
docs
87

8+
[gh-actions]
9+
python =
10+
3.8: py38, lint, sphinx, readme
11+
3.9: py39
12+
3.10: py310
13+
3.11: py311
14+
3.12: py312
15+
16+
[gh-actions:env]
17+
DJANGO =
18+
4.2: dj42
19+
5.0: dj50
20+
main: djmain
21+
922
[testenv]
1023
usedevelop = True
1124
extras = dev
1225
deps =
13-
django22: Django==2.2.*
14-
django30: Django==3.0.*
15-
django31: Django==3.1.*
16-
django32: Django==3.2.*
17-
django40: Django==4.0.*
26+
dj42: Django>=4.2,<5.0
27+
dj50: Django>=5.0,<5.1
28+
djmain: https://github.com/django/django/archive/main.tar.gz
1829
commands =
1930
pytest {posargs}
31+
ignore_outcome =
32+
djmain: True
2033

2134
[testenv:lint]
35+
deps =
36+
flake8
37+
black
38+
isort
2239
commands =
23-
isort --check --diff mail_factory demo
40+
isort --check --recursive --diff mail_factory demo
2441
flake8 mail_factory demo --show-source
2542
black --check mail_factory demo
2643

0 commit comments

Comments
 (0)