diff --git a/.github/workflows/test-python-poetry-task.yml b/.github/workflows/test-python-poetry-task.yml index 9fddf15..d0a717f 100644 --- a/.github/workflows/test-python-poetry-task.yml +++ b/.github/workflows/test-python-poetry-task.yml @@ -16,6 +16,7 @@ on: - "pyproject.toml" - "compilesketches/tests/**" - "**.py" + - "**/pytest.ini" pull_request: paths: - ".github/workflows/test-python-poetry-task.ya?ml" @@ -28,6 +29,7 @@ on: - "pyproject.toml" - "compilesketches/tests/**" - "**.py" + - "**/pytest.ini" schedule: # Run periodically to catch breakage caused by external changes. - cron: "0 12 * * WED" diff --git a/Taskfile.yml b/Taskfile.yml index 3ee780b..d6ac18b 100644 --- a/Taskfile.yml +++ b/Taskfile.yml @@ -434,7 +434,6 @@ tasks: POETRY_GROUPS: dev,main cmds: - | - export PYTHONPATH="${PWD}/{{.PYTHON_PROJECT_PATH}}" poetry run \ coverage run \ --source="{{.PYTHON_PROJECT_PATH}}" \ diff --git a/pytest.ini b/pytest.ini index b8beed3..202c1cf 100644 --- a/pytest.ini +++ b/pytest.ini @@ -8,3 +8,4 @@ filterwarnings = # --capture=no - disable per-test capture # --tb=long sets the length of the traceback in case of failures addopts = --capture=no --tb=long --verbose +pythonpath = compilesketches