diff --git a/.github/workflows/unit-tests.yml b/.github/workflows/unit-tests.yml index 23bddfb94b..7252365cd8 100644 --- a/.github/workflows/unit-tests.yml +++ b/.github/workflows/unit-tests.yml @@ -22,10 +22,12 @@ jobs: run: | pip install pipenv pipenv install -d - pipenv install -r test_requirements.txt + pipenv run pip install -r test_requirements.txt + - name: Check pytest installation + run: pipenv run pip show pytest - name: Run unit tests run: | - pipenv run python run_tests.py + pipenv run python3 run_tests.py # Frontend tests (VueJS) VueJS: diff --git a/run_tests.py b/run_tests.py index 7aa9f60148..1a7a3035a3 100755 --- a/run_tests.py +++ b/run_tests.py @@ -4,10 +4,7 @@ def run_python_tests(): - subprocess.check_call( - "python3 -m pytest timesketch/ api_client/", - shell=True, - ) + subprocess.check_call(["python3", "-m", "pytest", "timesketch/", "api_client/"]) def main():