tests: update pytest workflow

This sets the `PYTHONPATH` environment variable so we can run pytest
with the recent module refactor (module_utils introduction)

Signed-off-by: Guillaume Abrioux <gabrioux@redhat.com>
pull/6065/head
Guillaume Abrioux 2020-11-23 09:00:01 +01:00
parent 7c72632418
commit 6ba4c8c70b
1 changed files with 2 additions and 0 deletions

View File

@ -22,3 +22,5 @@ jobs:
architecture: x64 architecture: x64
- run: pip install -r tests/requirements.txt - run: pip install -r tests/requirements.txt
- run: pytest --cov=library/ --cov=plugins/filter/ -vvvv tests/library/ tests/plugins/filter/ - run: pytest --cov=library/ --cov=plugins/filter/ -vvvv tests/library/ tests/plugins/filter/
env:
PYTHONPATH: "$PYTHONPATH:/home/runner/work/ceph-ansible/ceph-ansible/library:/home/runner/work/ceph-ansible/ceph-ansible/module_utils:/home/runner/work/ceph-ansible/ceph-ansible"