@@ -9,6 +9,7 @@ envlist =
9
9
schemas
10
10
py
11
11
py-devel
12
+ pre
12
13
eco
13
14
isolated_build = true
14
15
skip_missing_interpreters = True
@@ -20,6 +21,7 @@ requires =
20
21
description =
21
22
Run the tests under {basepython} and
22
23
devel: ansible devel branch
24
+ pre: Enables --pre when installing dependencies, testing prereleases
23
25
deps =
24
26
devel: ansible-core @ git+https://github.com/ansible/ansible.git # GPLv3+
25
27
devel: ansible-compat @ git+https://github.com/ansible/ansible-compat.git # GPLv3+
@@ -29,6 +31,7 @@ commands_pre =
29
31
sh -c " rm -f .tox/.coverage.* 2>/dev/null || true"
30
32
bash ./tools/install-reqs.sh
31
33
commands =
34
+ ansible --version
32
35
# safety measure to assure we do not accidentally run tests with broken dependencies
33
36
{envpython} -m pip check
34
37
coverage run -m pytest {posargs:\
@@ -63,10 +66,11 @@ setenv =
63
66
COVERAGE_FILE = {env:COVERAGE_FILE:{toxworkdir}/.coverage.{envname}}
64
67
COVERAGE_PROCESS_START ={toxinidir}/pyproject.toml
65
68
PIP_CONSTRAINT = {toxinidir}/.config/requirements.txt
66
- devel,pkg: PIP_CONSTRAINT = /dev/null
69
+ devel,pkg,pre : PIP_CONSTRAINT = /dev/null
67
70
PIP_DISABLE_PIP_VERSION_CHECK = 1
68
71
PRE_COMMIT_COLOR = always
69
72
FORCE_COLOR = 1
73
+ pre: PIP_PRE = 1
70
74
allowlist_externals =
71
75
bash
72
76
find
0 commit comments