From 9794a0248ff8ad37fa235a314856eb283e58de13 Mon Sep 17 00:00:00 2001 From: Dominik Date: Wed, 4 Oct 2023 12:10:27 -0700 Subject: [PATCH] set env to import correct code in tests --- .github/workflows/python-package.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index cee219e1..7f188350 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -36,6 +36,8 @@ jobs: # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - name: Test with pytest + env: + PYTHONPATH: ./src/ run: | coverage run --source=src/palantir/ -m pytest tests/*.py - name: Upload coverage reports to Codecov