-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathtox.ini
48 lines (43 loc) · 1.16 KB
/
tox.ini
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[tox]
; Minimum version of Tox
minversion = 1.8
envlist =
ruff
py{311,312}-django42,
py{311,312,313}-django{51,52},
py{312,313}-django{main},
[gh-actions]
; Maps GitHub Actions python version numbers to tox env vars:
python =
3.11: py311
3.12: py312
3.13: py313
[gh-actions:env]
; Maps GitHub Actions DJANGO version env var to tox env vars:
DJANGO =
4.2: django42
5.1: django51
5.2: django52
main: djangomain
[testenv]
dependency_groups =
dev
deps =
django42: Django >= 4.2, < 4.3
django51: Django >= 5.1, < 5.2
django52: Django >= 5.2a1, < 5.3
djangomain: https://github.com/django/django/archive/master.tar.gz
setenv =
DJANGO_SETTINGS_MODULE=tests.settings
PYTHONPATH={toxinidir}
commands =
; posargs will be replaced with anything after the -- when calling tox, eg;
; tox -- tests.ditto.tests.test_views.DittoViewTests.test_home_templates
; would run that single test (in all environments)
coverage run {envbindir}/django-admin test {posargs:}
coverage combine
coverage report -m
[testenv:ruff]
skip_install = true
deps = ruff
commands = ruff check {posargs:--output-format=full .}