From fd0b464e3441f778a8fd977501ceeb4e98bc99f0 Mon Sep 17 00:00:00 2001 From: Erik Skultety Date: Wed, 22 Feb 2023 10:48:41 +0100 Subject: [PATCH] gitlab-ci: Add a job to test CLI with lcitool package installed This should prevent us to merge changes which move code around or add new dependencies without updating setup.py. Signed-off-by: Erik Skultety --- .gitlab-ci.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10cbea67..619dcd5f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -164,6 +164,14 @@ unittests: - pip3 install -r requirements.txt ansible-runner - python3 -m pytest --verbose +package_install: + extends: unittests + script: + - python3 -m venv _venv_ + - _venv_/bin/pip3 install setuptools pytest + - _venv_/bin/pip3 install -r requirements.txt pytest . + - _venv_/bin/python3 -m pytest --verbose tests/test_commands.py -k 'test_commands_installed' + x86_64-check-almalinux-8: extends: .check_container_template variables: