Skip to content

Commit

Permalink
gitlab-ci: Add a job to test CLI with lcitool package installed
Browse files Browse the repository at this point in the history
This should prevent us to merge changes which move code around or add
new dependencies without updating setup.py.

Signed-off-by: Erik Skultety <[email protected]>
  • Loading branch information
eskultety committed Feb 22, 2023
1 parent 9abb829 commit fd0b464
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .gitlab-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit fd0b464

Please sign in to comment.