From 6ba4c8c70b65be7ccd7c6c2e6f0959bd4f058e12 Mon Sep 17 00:00:00 2001 From: Guillaume Abrioux Date: Mon, 23 Nov 2020 09:00:01 +0100 Subject: [PATCH] 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 --- .github/workflows/pytest.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 5ac5666de..2bf351383 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -22,3 +22,5 @@ jobs: architecture: x64 - run: pip install -r tests/requirements.txt - 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"