Skip to content

Commit 7f994ed

Browse files
authored
Parallelize pytest with pytest-xdist (#1247)
1 parent e17557f commit 7f994ed

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
cmd: make -C doc/ html
4848
type: lint
4949
- name: pytest
50-
cmd: pytest --cov=pymodbus --cov=test --cov-report=term-missing --cov-report=xml -v --full-trace --timeout=20
50+
cmd: pytest --cov=pymodbus --cov=test --cov-report=term-missing --cov-report=xml -v --full-trace --timeout=20 --numprocesses auto
5151
type: test
5252
os:
5353
- name: Linux

check_ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,5 +10,5 @@ black --safe --quiet examples/ pymodbus/ test/
1010
isort .
1111
pylint --recursive=y examples pymodbus test
1212
flake8
13-
pytest
13+
pytest --numprocesses auto
1414
echo "Ready to push"

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,3 +70,4 @@ pytest==7.1.3
7070
pytest-asyncio==0.19.0
7171
pytest-cov==4.0.0
7272
pytest-timeout==2.1.0
73+
pytest-xdist==3.1.0

0 commit comments

Comments
 (0)