Skip to content

Enable devel testing job #321

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 17, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/tox.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@ jobs:
docs
lint
pkg
py313-milestone
py313-devel
py-mise:tox -e py:mise=true
29 changes: 13 additions & 16 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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 =
Expand All @@ -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 =
Expand Down Expand Up @@ -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
Expand Down