@@ -3,9 +3,11 @@ requires =
3
3
tox>=4.11.3
4
4
env_list =
5
5
py
6
+ deps
7
+ docs
6
8
lint
9
+ milestone
7
10
pkg
8
- docs
9
11
skip_missing_interpreters = true
10
12
11
13
[testenv]
@@ -24,11 +26,11 @@ pass_env =
24
26
TERM
25
27
USER
26
28
set_env =
29
+ !milestone: PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt
27
30
COVERAGE_COMBINED = {envdir}/.coverage
28
31
COVERAGE_FILE = {env:COVERAGE_FILE:{envdir}/.coverage.{envname}}
29
32
COVERAGE_PROCESS_START = {toxinidir}/pyproject.toml
30
33
FORCE_COLOR = 1
31
- PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt
32
34
PRE_COMMIT_COLOR = always
33
35
TERM = xterm-256color
34
36
commands_pre =
@@ -45,28 +47,21 @@ allowlist_externals =
45
47
rm
46
48
sh
47
49
48
- [testenv:lint]
49
- description = Enforce quality standards under {basepython}
50
+ [testenv:deps]
51
+ description = Bump all dependencies
52
+ base_python = python3.10
50
53
skip_install = true
51
54
deps =
52
- pre-commit
55
+ {[testenv:lint]deps}
56
+ extras =
53
57
set_env =
54
58
PIP_CONSTRAINT = /dev/null
59
+ commands_pre =
55
60
commands =
56
- pre-commit run --show-diff-on-failure --all-files
57
-
58
- [testenv:pkg]
59
- description =
60
- Do packaging/distribution
61
- skip_install = true
62
- deps =
63
- build>=0.9
64
- twine >= 4.0.2 # pyup: ignore
65
- set_env =
66
- commands =
67
- rm -rfv {toxinidir}/dist/
68
- python -m build --outdir {toxinidir}/dist/ {toxinidir}
69
- sh -c " python -m twine check --strict {toxinidir}/dist/*"
61
+ -pre-commit run --all-files --show-diff-on-failure --hook-stage manual deps
62
+ -pre-commit autoupdate
63
+ git diff --exit-code
64
+ env_dir = {toxworkdir}/lint
70
65
71
66
[testenv:docs]
72
67
description = Builds docs
@@ -80,18 +75,34 @@ set_env =
80
75
commands =
81
76
mkdocs build {posargs:}
82
77
83
- [testenv:deps]
84
- description = Bump all dependencies
85
- base_python = python3.10
78
+ [testenv:lint]
79
+ description = Enforce quality standards under {basepython}
86
80
skip_install = true
87
81
deps =
88
- {[testenv:lint]deps}
89
- extras =
82
+ pre-commit
90
83
set_env =
91
84
PIP_CONSTRAINT = /dev/null
92
- commands_pre =
93
85
commands =
94
- -pre-commit run --all-files --show-diff-on-failure --hook-stage manual deps
95
- -pre-commit autoupdate
96
- git diff --exit-code
97
- env_dir = {toxworkdir}/lint
86
+ pre-commit run --show-diff-on-failure --all-files
87
+
88
+ [testenv:milestone]
89
+ description =
90
+ Run tests with ansible-core milestone branch and without dependencies constraints
91
+ deps =
92
+ ansible-core@ https://github.com/ansible/ansible/archive/milestone.tar.gz
93
+ set_env =
94
+ {[testenv]set_env}
95
+ PIP_CONSTRAINT = /dev/null
96
+
97
+ [testenv:pkg]
98
+ description =
99
+ Do packaging/distribution
100
+ skip_install = true
101
+ deps =
102
+ build>=0.9
103
+ twine >= 4.0.2 # pyup: ignore
104
+ set_env =
105
+ commands =
106
+ rm -rfv {toxinidir}/dist/
107
+ python -m build --outdir {toxinidir}/dist/ {toxinidir}
108
+ sh -c " python -m twine check --strict {toxinidir}/dist/*"
0 commit comments