Skip to content

Commit

Permalink
Adds devel pipeline that tests with unreleased direct dependencies
Browse files Browse the repository at this point in the history
This should help us spot changes in other tools that would break
our extension before we release them.
  • Loading branch information
ssbarnea authored and shatakshiiii committed Dec 24, 2024
1 parent 5ca4a7c commit 002fa33
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
9 changes: 9 additions & 0 deletions .config/requirements-devel.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ansible-compat @ git+https://github.com/ansible/ansible-compat@main
ansible-creator @ git+https://github.com/ansible/ansible-creator@main
ansible-dev-environment @ git+https://github.com/ansible/ansible-dev-environment@main
ansible-dev-tools @ git+https://github.com/ansible/ansible-dev-tools@main
ansible-lint @ git+https://github.com/ansible/ansible-lint@main
ansible-navigator @ git+https://github.com/ansible/ansible-navigator@main
molecule @ git+https://github.com/ansible/molecule@main
pytest-ansible @ git+https://github.com/ansible/pytest-ansible@main
tox-ansible @ git+https://github.com/ansible/tox-ansible@main
5 changes: 5 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,11 @@ jobs:
- name: test (linux)
task-name: test

- name: test-devel (linux)
task-name: test
env:
DEVEL: 1

- name: test (macos)
task-name: test
os: macos-13-large
Expand Down
10 changes: 9 additions & 1 deletion tools/test-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,12 @@ if [[ $(uname || true) != MINGW* ]]; then # if we are not on pure Windows
# We used the already tested constraints file from community-ansible-dev-tools EE in order
# to avoid surprises. This ensures venv and community-ansible-dev-tools EE have exactly same
# versions.
PIP_DEVEL_ARGS=()
if [[ "${DEVEL:-}" == "1" ]]; then
PIP_DEVEL_ARGS=("-r" ".config/requirements-devel.in")
fi
python3 -m uv pip install -q \
-r .config/requirements.in
-r .config/requirements.in "${PIP_DEVEL_ARGS[@]}"
fi

# GHA failsafe only: ensure ansible and ansible-lint cannot be found anywhere
Expand Down Expand Up @@ -477,7 +481,11 @@ env:
OS: ${OS:-null} # taskfile
OSTYPE: ${OSTYPE}
tools:
ade: $(get_version ade)
ansible-builder: $(get_version ansible-builder)
ansible-creator: $(get_version ansible-creator)
ansible-lint: $(get_version ansible-lint)
ansible-navigator: $(get_version ansible-navigator)
ansible: $(get_version ansible)
asdf: $(get_version asdf)
bash: $(get_version bash)
Expand Down

0 comments on commit 002fa33

Please sign in to comment.