Skip to content

Commit 5494460

Browse files
authored
Merge pull request #65 from per1234/pytest-config
Adjust unit test infrastructure to facilitate running tests via IDEs
2 parents 2f24632 + 15af6ae commit 5494460

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/test-python-poetry-task.yml

+2
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ on:
2020
- "pyproject.toml"
2121
- "reportsizedeltas/tests/**"
2222
- "**.py"
23+
- "**/pytest.ini"
2324
pull_request:
2425
paths:
2526
- ".github/workflows/test-python-poetry-task.ya?ml"
@@ -32,6 +33,7 @@ on:
3233
- "pyproject.toml"
3334
- "reportsizedeltas/tests/**"
3435
- "**.py"
36+
- "**/pytest.ini"
3537
schedule:
3638
# Run periodically to catch breakage caused by external changes.
3739
- cron: "0 12 * * WED"

Taskfile.yml

-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,6 @@ tasks:
248248
- task: poetry:install-deps
249249
cmds:
250250
- |
251-
export PYTHONPATH="${PWD}/{{.PYTHON_PROJECT_PATH}}"
252251
poetry run \
253252
coverage run \
254253
--source="{{.PYTHON_PROJECT_PATH}}" \

reportsizedeltas/tests/pytest.ini renamed to pytest.ini

+1
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@ filterwarnings =
88
# --capture=no - disable per-test capture
99
# --tb=long sets the length of the traceback in case of failures
1010
addopts = --capture=no --tb=long --verbose
11+
pythonpath = reportsizedeltas

0 commit comments

Comments
 (0)