Skip to content

Commit 0e986ff

Browse files
committed
pytest: run in parallel
1 parent e670605 commit 0e986ff

File tree

4 files changed

+4
-6
lines changed

4 files changed

+4
-6
lines changed

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -145,11 +145,11 @@ diff-cover.html: coverage.xml
145145

146146
## test : run the cwl-utils test suite
147147
test: $(PYSOURCES)
148-
python -m pytest -rsx ${PYTEST_EXTRA}
148+
python -m pytest ${PYTEST_EXTRA}
149149

150150
## testcov : run the cwl-utils test suite and collect coverage
151151
testcov: $(PYSOURCES)
152-
pytest --cov ${PYTEST_EXTRA}
152+
python -m pytest --cov ${PYTEST_EXTRA}
153153

154154
sloccount.sc: $(PYSOURCES) Makefile
155155
sloccount --duplicates --wide --details $^ > $@

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ test = "pytest"
6060

6161
[tool.pytest.ini_options]
6262
testpaths = ["tests"]
63+
addopts = "-rsx -n auto"
6364

6465
[tool.setuptools]
6566
packages = [

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pytest < 9
22
pytest-cov
3-
pytest-xdist
3+
pytest-xdist[psutil]
44
cwlformat
55
pytest-mock >= 1.10.0
66
jsonschema >= 4.21.1

tox.ini

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ envlist =
99
isolated_build = True
1010
skip_missing_interpreters = True
1111

12-
[pytest]
13-
addopts=-n auto
14-
1512
[gh-actions]
1613
python =
1714
3.9: py39

0 commit comments

Comments
 (0)