Pin ansible-core for collection tests (#7030)

Signed-off-by: Elyézer Rezende <elyezermr@gmail.com>
This commit is contained in:
Elyézer Rezende 2025-07-25 11:23:42 -04:00 committed by Chris Meyers
parent 3ccc5e5f2c
commit 4757785016
2 changed files with 3 additions and 3 deletions

View File

@ -275,7 +275,7 @@ jobs:
python-version: '3.12'
- name: Upgrade ansible-core
run: python3 -m pip install --upgrade ansible-core
run: python3 -m pip install --upgrade "ansible-core<2.19"
- name: Download coverage artifacts
uses: actions/download-artifact@v4

View File

@ -371,7 +371,7 @@ test_collection:
if [ "$(VENV_BASE)" ]; then \
. $(VENV_BASE)/awx/bin/activate; \
fi && \
if ! [ -x "$(shell command -v ansible-playbook)" ]; then pip install ansible-core; fi
if ! [ -x "$(shell command -v ansible-playbook)" ]; then pip install "ansible-core<2.19"; fi
ansible --version
py.test $(COLLECTION_TEST_DIRS) -v
# The python path needs to be modified so that the tests can find Ansible within the container
@ -405,7 +405,7 @@ install_collection: build_collection
test_collection_sanity:
rm -rf awx_collection_build/
rm -rf $(COLLECTION_INSTALL)
if ! [ -x "$(shell command -v ansible-test)" ]; then pip install ansible-core; fi
if ! [ -x "$(shell command -v ansible-test)" ]; then pip install "ansible-core<2.19"; fi
ansible --version
COLLECTION_VERSION=1.0.0 $(MAKE) install_collection
cd $(COLLECTION_INSTALL) && ansible-test sanity $(COLLECTION_SANITY_ARGS)