diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index bd0a8ecf9..bb6b1f52b 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -31,4 +31,7 @@ jobs: sudo meson install - name: Run unit tests with Pytest run: | - PYTHONSAFEPATH=1 PYTHONPATH=/usr/local/lib/python3.8/site-packages ./run-tests + mkdir dummydir + # Change to dummy directory to prevent adding the source root to sys.path + cd dummydir + PYTHONPATH=/usr/local/lib/python3.8/site-packages ../run-tests