Skip to content

Commit 33eddfc

Browse files
committed
refactor: put pytest config in pyproject.toml
1 parent c8430a8 commit 33eddfc

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

.github/workflows/test.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ jobs:
7070
7171
- name: pytest
7272
run: |
73-
pytest --verbose --color=yes --last-failed --cov batchspawner batchspawner/tests
73+
pytest --cov=batchspawner
7474
7575
# GitHub action reference: https://github.com/codecov/codecov-action
7676
- uses: codecov/codecov-action@v3

pyproject.toml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,15 @@ requires = ["setuptools", "wheel"]
33
build-backend = "setuptools.build_meta"
44

55

6+
# pytest is used for running Python based tests
7+
#
8+
# ref: https://docs.pytest.org/en/stable/
9+
#
10+
[tool.pytest.ini_options]
11+
addopts = "--verbose --color=yes --durations=10"
12+
testpaths = ["batchspawner/tests"]
13+
14+
615
# tbump is used to simplify and standardize the release process when updating
716
# the version, making a git commit and tag, and pushing changes.
817
#

0 commit comments

Comments
 (0)