Skip to content

Commit 09971ae

Browse files
committed
Move pytest configuration file to root of repository
The previous location worked fine when running pytest directly or via the task. It was also possible to run the tests from the PyCharm UI after a bit of configuration. However, I had no luck with using the VS Code test explorer. VS Code is likely to be the most common development environment of contributors so it will be important to make it easy to use with VS Code. Moving pytest.ini file to the root of the repository allowed the VS Code test explorer to correctly recognize it.
1 parent 2f24632 commit 09971ae

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
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"
File renamed without changes.

0 commit comments

Comments
 (0)