From 1b74f5c534f0ca478bb9ec08179f1ecdb159383a Mon Sep 17 00:00:00 2001 From: Sebastian Grabowski Date: Fri, 1 Mar 2024 04:29:19 +0100 Subject: [PATCH] GHA: Imvoke pytest directly --- .github/workflows/unit_tests.yml | 2 +- run-tests | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/unit_tests.yml b/.github/workflows/unit_tests.yml index e70b6fe62..61d8faa34 100644 --- a/.github/workflows/unit_tests.yml +++ b/.github/workflows/unit_tests.yml @@ -35,4 +35,4 @@ jobs: 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 ../tests + PYTHONPATH=/usr/local/lib/python3.8/site-packages pytest ../tests diff --git a/run-tests b/run-tests index 46fd9e6d8..8d5b39a29 100755 --- a/run-tests +++ b/run-tests @@ -38,4 +38,5 @@ if __name__ == "__main__": if len(sys.argv) == 1: sys.argv.append('tests') - sys.exit(pytest.main(['--import-mode=append'] + sys.argv[1:])) + sys.exit(pytest.main()) +