From 7c1b089c9b0f65e5a464624a819fe894ab0257b8 Mon Sep 17 00:00:00 2001 From: Janosch <99879757+jkppr@users.noreply.github.com> Date: Wed, 27 Nov 2024 17:38:18 +0100 Subject: [PATCH] Fix broken unit test workflows (#3231) * Fixing the unit test workflows --- .github/workflows/unit-tests.yml | 6 ++++-- run_tests.py | 5 +---- 2 files changed, 5 insertions(+), 6 deletions(-) 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():