File: tox.ini

package info (click to toggle)
django-auditlog 3.4.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 744 kB
  • sloc: python: 5,794; makefile: 46; sh: 33
file content (81 lines) | stat: -rw-r--r-- 1,735 bytes parent folder | download
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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
[tox]
envlist =
    {py312}-customlogmodel-django52
    {py310,py311}-django42
    {py310,py311,py312}-django50
    {py310,py311,py312,py313}-django51
    {py310,py311,py312,py313}-django52
    {py312,py313}-djangomain
    py310-docs
    py310-lint
    py310-checkmigrations


[testenv]
setenv =
  COVERAGE_FILE={toxworkdir}/.coverage.{envname}.{env:TEST_DB_BACKEND}
  customlogmodel: AUDITLOG_LOGENTRY_MODEL = custom_logentry_app.CustomLogEntryModel
changedir = auditlog_tests
commands =
    coverage run --source auditlog ./manage.py test
    coverage xml
deps =
    django42: Django>=4.2,<4.3
    django50: Django>=5.0,<5.1
    django51: Django>=5.1,<5.2
    django52: Django>=5.2,<5.3
    djangomain: https://github.com/django/django/archive/main.tar.gz
    # Test requirements
    coverage
    codecov
    freezegun
    psycopg2-binary
    mysqlclient
    
passenv=
    TEST_DB_BACKEND
    TEST_DB_HOST
    TEST_DB_USER
    TEST_DB_PASS
    TEST_DB_NAME
    TEST_DB_PORT

basepython =
    py313: python3.13
    py312: python3.12
    py311: python3.11
    py310: python3.10

[testenv:py310-docs]
changedir = docs/source
deps = -rdocs/requirements.txt
commands = sphinx-build -W -b html -d {envtmpdir}/doctrees . {envtmpdir}/html

[testenv:py310-lint]
deps = pre-commit
commands =
    pre-commit run --all-files

[testenv:py310-checkmigrations]
description = Check for missing migrations
changedir = auditlog_tests
deps =
    Django>=4.2
    psycopg2-binary
    mysqlclient
passenv=
    TEST_DB_BACKEND
    TEST_DB_HOST
    TEST_DB_USER
    TEST_DB_PASS
    TEST_DB_NAME
    TEST_DB_PORT
commands =
    python manage.py makemigrations --check --dry-run

[gh-actions]
python =
  3.10: py310
  3.11: py311
  3.12: py312
  3.13: py313