diff --git a/.github/workflows/build-pipeline.yml b/.github/workflows/build-pipeline.yml index 27cd1c6..959bc93 100644 --- a/.github/workflows/build-pipeline.yml +++ b/.github/workflows/build-pipeline.yml @@ -8,7 +8,7 @@ on: - main jobs: build: - runs-on: ${{ matrix.os }} + runs-on: ${{ matrix.os }} env: PYTHONIOENCODING: "utf8" strategy: @@ -21,7 +21,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: ${{ matrix.python-version }} + python-version: ${{ matrix.python-version }} - name: Install dependencies run: | python -m pip install --upgrade pip @@ -29,6 +29,8 @@ jobs: - name: Run Linting run: | ruff check . + - name: Set PYTHONPATH_TEST + run: echo "PYTHONPATH_TEST=$(pwd)" >> $GITHUB_ENV - name: Run Tests run: | pytest tests/ diff --git a/pyproject.toml b/pyproject.toml index b587b28..ac40100 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -44,6 +44,7 @@ Icon = "" [tool.pytest.ini_options] minversion = "8.0" +pythonpath = "src" testpaths = [ "tests", ]