Skip to content

Commit d84f7d8

Browse files
authored
Enable devel testing job (#321)
1 parent c272cd2 commit d84f7d8

File tree

2 files changed

+14
-17
lines changed

2 files changed

+14
-17
lines changed

.github/workflows/tox.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,5 +24,5 @@ jobs:
2424
docs
2525
lint
2626
pkg
27-
py313-milestone
27+
py313-devel
2828
py-mise:tox -e py:mise=true

tox.ini

Lines changed: 13 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,24 @@
11
[tox]
22
requires =
33
setuptools>=65.3
4-
tox>=4.11.3
5-
tox-uv>=1.16
4+
tox>=4.25
5+
tox-extra>=2.1
6+
tox-uv>=1.25
67
env_list =
78
py
89
deps
910
docs
1011
lint
11-
milestone
12+
devel
1213
pkg
1314
skip_missing_interpreters = true
1415

1516
[testenv]
16-
description = Run pytest under {basepython}
17+
description = Run pytest
18+
devel: with development dependencies
1719
package = editable
20+
deps =
21+
devel: ansible-core@ git+https://github.com/ansible/ansible.git
1822
extras =
1923
test
2024
pass_env =
@@ -29,14 +33,16 @@ pass_env =
2933
TERM
3034
USER
3135
set_env =
32-
!milestone: PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt
33-
!milestone: UV_CONSTRAINT = {toxinidir}/.config/constraints.txt
3436
COVERAGE_COMBINED = {envdir}/.coverage
35-
COVERAGE_FILE = {env:COVERAGE_FILE:{envdir}/.coverage.{envname}}
37+
COVERAGE_FILE = {env:COVERAGE_FILE:{env_dir}/.coverage.{envname}}
3638
COVERAGE_PROCESS_START = {toxinidir}/pyproject.toml
3739
FORCE_COLOR = 1
40+
PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt
3841
PRE_COMMIT_COLOR = always
3942
TERM = xterm-256color
43+
UV_CONSTRAINT = {toxinidir}/.config/constraints.txt
44+
deps, devel: PIP_CONSTRAINT = /dev/null
45+
deps, devel: UV_CONSTRAINT = /dev/null
4046
commands_pre =
4147
sh -c "rm -f {envdir}/.coverage* 2>/dev/null || true"
4248
commands =
@@ -91,15 +97,6 @@ set_env =
9197
commands =
9298
pre-commit run --show-diff-on-failure --all-files
9399

94-
[testenv:milestone]
95-
description =
96-
Run tests with ansible-core milestone branch and without dependencies constraints
97-
deps =
98-
ansible-core@ https://github.com/ansible/ansible/archive/milestone.tar.gz
99-
set_env =
100-
{[testenv]set_env}
101-
PIP_CONSTRAINT = /dev/null
102-
103100
[testenv:pkg]
104101
description =
105102
Do packaging/distribution

0 commit comments

Comments
 (0)