chore: Add tox-ansible configuration

Add tox-ansible configuration that allows to run tests with all
required ansible and python versions. Add Makefile targets to make use
of it.

Signed-off-by: Felix Matouschek <fmatouschek@redhat.com>
This commit is contained in:
Felix Matouschek
2024-04-11 15:02:51 +02:00
parent e2d2da2670
commit 55a6acef5d
3 changed files with 14 additions and 1 deletions

3
.gitignore vendored
View File

@@ -136,8 +136,9 @@ bin/
*.tar.gz *.tar.gz
*.zip *.zip
# pytest-ansible # pytest-ansible and tox-ansible
collections/ collections/
kubevirt.core
# Collection specific ignores # Collection specific ignores
/changelogs/.plugin-cache.yaml /changelogs/.plugin-cache.yaml

View File

@@ -16,3 +16,15 @@ build-venv:
.PHONY: format .PHONY: format
format: format:
tox run -e format tox run -e format
.PHONY: test-sanity
test-sanity:
tox -f sanity --ansible -p auto --conf tox-ansible.ini
.PHONY: test-unit
test-unit:
tox -f unit --ansible -p auto --conf tox-ansible.ini
.PHONY: test-integration
test-integration:
tox -f integration --ansible --conf tox-ansible.ini

0
tox-ansible.ini Normal file
View File