diff --git a/.github/workflows/tox.yml b/.github/workflows/tox.yml index 740cc0b..3ab66b2 100644 --- a/.github/workflows/tox.yml +++ b/.github/workflows/tox.yml @@ -24,5 +24,5 @@ jobs: docs lint pkg - py313-milestone + py313-devel py-mise:tox -e py:mise=true diff --git a/tox.ini b/tox.ini index 0816818..a67d975 100644 --- a/tox.ini +++ b/tox.ini @@ -1,20 +1,24 @@ [tox] requires = setuptools>=65.3 - tox>=4.11.3 - tox-uv>=1.16 + tox>=4.25 + tox-extra>=2.1 + tox-uv>=1.25 env_list = py deps docs lint - milestone + devel pkg skip_missing_interpreters = true [testenv] -description = Run pytest under {basepython} +description = Run pytest + devel: with development dependencies package = editable +deps = + devel: ansible-core@ git+https://github.com/ansible/ansible.git extras = test pass_env = @@ -29,14 +33,16 @@ pass_env = TERM USER set_env = - !milestone: PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt - !milestone: UV_CONSTRAINT = {toxinidir}/.config/constraints.txt COVERAGE_COMBINED = {envdir}/.coverage - COVERAGE_FILE = {env:COVERAGE_FILE:{envdir}/.coverage.{envname}} + COVERAGE_FILE = {env:COVERAGE_FILE:{env_dir}/.coverage.{envname}} COVERAGE_PROCESS_START = {toxinidir}/pyproject.toml FORCE_COLOR = 1 + PIP_CONSTRAINT = {toxinidir}/.config/constraints.txt PRE_COMMIT_COLOR = always TERM = xterm-256color + UV_CONSTRAINT = {toxinidir}/.config/constraints.txt + deps, devel: PIP_CONSTRAINT = /dev/null + deps, devel: UV_CONSTRAINT = /dev/null commands_pre = sh -c "rm -f {envdir}/.coverage* 2>/dev/null || true" commands = @@ -91,15 +97,6 @@ set_env = commands = pre-commit run --show-diff-on-failure --all-files -[testenv:milestone] -description = - Run tests with ansible-core milestone branch and without dependencies constraints -deps = - ansible-core@ https://github.com/ansible/ansible/archive/milestone.tar.gz -set_env = - {[testenv]set_env} - PIP_CONSTRAINT = /dev/null - [testenv:pkg] description = Do packaging/distribution