From 9ee1b0f34abd4fa12ffe8d457ddf665dffad2cde Mon Sep 17 00:00:00 2001 From: Balazs Perlaki-Horvath Date: Wed, 14 Feb 2024 13:17:39 +0100 Subject: [PATCH] Use suggested python path --- .github/workflows/ci.yml | 8 ++++---- tests/__init__.py | 2 -- 2 files changed, 4 insertions(+), 6 deletions(-) delete mode 100644 tests/__init__.py diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3dcffa3..ccb5322 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,10 +36,10 @@ jobs: run: python -m pip install pyyaml - name: Test python scripts - run: | - cd custom - python -m unittest - cd .. + working-directory: custom + env: + PYTHONPATH: src/ + run: python -m unittest - name: Set test tag variable as an output id: vars diff --git a/tests/__init__.py b/tests/__init__.py deleted file mode 100644 index a60ef73..0000000 --- a/tests/__init__.py +++ /dev/null @@ -1,2 +0,0 @@ -import sys -sys.path.insert(0, "src") \ No newline at end of file