Fix installation of ansible venv

ansible-test is included in ansible package. Also, on Fedora 37 with
python 3.11, pip is missing. By using ensurepip we solve that issue.
This commit is contained in:
Laurent Indermuehle 2023-02-21 11:06:30 +01:00
commit 0f5dc50d6d
No known key found for this signature in database
GPG key ID: 93FA944C9F34DD09
2 changed files with 11 additions and 2 deletions

View file

@ -62,7 +62,8 @@ test-integration:
mkdir -p .venv/$(ansible) mkdir -p .venv/$(ansible)
python -m venv .venv/$(ansible) python -m venv .venv/$(ansible)
source .venv/$(ansible)/bin/activate source .venv/$(ansible)/bin/activate
python -m pip install --disable-pip-version-check --user https://github.com/ansible/ansible/archive/$(ansible).tar.gz ansible-test python -m ensurepip
python -m pip install --disable-pip-version-check --user https://github.com/ansible/ansible/archive/$(ansible).tar.gz
-set -x; ansible-test integration $(target) -v --color --coverage --diff --docker $(docker_image) --docker-network podman $(_continue_on_errors) $(_keep_containers_alive) --python $(python); set +x -set -x; ansible-test integration $(target) -v --color --coverage --diff --docker $(docker_image) --docker-network podman $(_continue_on_errors) $(_keep_containers_alive) --python $(python); set +x
rm tests/integration/db_engine_version rm tests/integration/db_engine_version
rm tests/integration/connector rm tests/integration/connector

View file

@ -14,7 +14,15 @@ Everytime you push on your fork or you create a pull request, both workflows run
You can use GitHub to run ansible-test either on the community repo or your fork. But sometimes you want to quickly test a single version or a single target. To do that, you can use the Makefile present at the root of this repository. You can use GitHub to run ansible-test either on the community repo or your fork. But sometimes you want to quickly test a single version or a single target. To do that, you can use the Makefile present at the root of this repository.
Actually, the makefile only support Podman. For now, the makefile only support Podman.
### Requirements
- python 3.8+
- make
### Makefile options
The Makefile accept the following options: The Makefile accept the following options: