diff options
author | Erik Skultety <eskultet@redhat.com> | 2023-02-22 10:48:41 +0100 |
---|---|---|
committer | Erik Skultety <eskultet@redhat.com> | 2023-02-22 14:45:50 +0100 |
commit | fd0b464e3441f778a8fd977501ceeb4e98bc99f0 (patch) | |
tree | 55d75021cca6c165f7339b8702cedd1343a3f4ac | |
parent | 9abb829899ceac609082ad613d089b36525cc344 (diff) | |
download | libvirt-ci-fd0b464e3441f778a8fd977501ceeb4e98bc99f0.zip libvirt-ci-fd0b464e3441f778a8fd977501ceeb4e98bc99f0.tar.gz libvirt-ci-fd0b464e3441f778a8fd977501ceeb4e98bc99f0.tar.bz2 |
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 <eskultet@redhat.com>
-rw-r--r-- | .gitlab-ci.yml | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 10cbea6..619dcd5 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: |