-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
4c7694e
commit d9f3c04
Showing
7 changed files
with
48 additions
and
47 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
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
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
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,30 +1,40 @@ | ||
# content of: tox.ini , put in same dir as setup.py | ||
[tox] | ||
# celery5.2はPython3.7以降に対応しているため、Python3.6のテストではcelery 5.1までを使用する | ||
envlist = py36-django{22,32}-celery{42,51},py39-django{22,32}-celery{51,52} | ||
envlist = py{39,310,311,312}-dj{32,42}-celery{52,53} | ||
skipsdist = True | ||
|
||
[testenv] | ||
basepython = | ||
py36: python3.6 | ||
py39: python3.9 | ||
py310: python3.10 | ||
py311: python3.11 | ||
py312: python3.12 | ||
|
||
[pytest] | ||
test_paths = tests test_*.py *_test.py | ||
django_find_project = false | ||
DJANGO_SETTINGS_MODULE = test_settings | ||
|
||
deps = | ||
pytest | ||
pytest-django | ||
six | ||
django22: Django~=2.2.12 | ||
django32: Django~=3.2.1 | ||
celery42: celery>=4.2,<4.3 | ||
celery51: celery>=5.0,<5.2 | ||
dj32: Django>=3.2,<4.0 | ||
dj42: Django>=4.2,<5.0 | ||
celery52: celery>=5.2,<5.3 | ||
celery53: celery>=5.3,<5.4 | ||
|
||
commands=python setup.py test | ||
commands=pytest {posargs} | ||
|
||
# tox-gh-actionsパッケージの設定 | ||
[gh-actions] | ||
python = | ||
3.6: py36 | ||
3.9: py39 | ||
3.10: py310 | ||
3.11: py311 | ||
3.12: py312 | ||
|
||
[gh-actions:env] | ||
DJANGO = | ||
2.2: django22 | ||
3.2: django32 | ||
4.2: django42 |