From 55a6acef5d1931419058a3a0d395badcbfd8295e Mon Sep 17 00:00:00 2001 From: Felix Matouschek Date: Thu, 11 Apr 2024 15:02:51 +0200 Subject: [PATCH] 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 --- .gitignore | 3 ++- Makefile | 12 ++++++++++++ tox-ansible.ini | 0 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 tox-ansible.ini diff --git a/.gitignore b/.gitignore index 3d59881..4cf02ec 100644 --- a/.gitignore +++ b/.gitignore @@ -136,8 +136,9 @@ bin/ *.tar.gz *.zip -# pytest-ansible +# pytest-ansible and tox-ansible collections/ +kubevirt.core # Collection specific ignores /changelogs/.plugin-cache.yaml diff --git a/Makefile b/Makefile index bf8c961..5ddb50d 100644 --- a/Makefile +++ b/Makefile @@ -16,3 +16,15 @@ build-venv: .PHONY: format 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 diff --git a/tox-ansible.ini b/tox-ansible.ini new file mode 100644 index 0000000..e69de29