Skip to content

Commit 9dff441

Browse files
committed
Updated Pytest workflows to run tests in parallel with pytest-xdist.
1 parent c0130cd commit 9dff441

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

β€Ž.github/workflows/codecov.ymlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
- name: Generate coverage report
2828
# The list of "--ignore=..." arguments should be identical to the exclusion list in Tox.ini, though without comments:
2929
run: >
30-
pytest --cov=./ --cov-report=xml -vv -rA
30+
pytest --numprocesses=auto --cov=./ --cov-report=xml -vv -rA
3131
--ignore=test/browser/input/select_1_test.py
3232
--ignore=test/browser/input/select_headless_exception_test.py
3333
--ignore=test/browser/viewport/get/height_non_headless_1_test.py

β€Žtox.iniβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ setenv =
1313
deps =
1414
-r{toxinidir}/requirements_dev.txt
1515
commands =
16-
pytest --basetemp={envtmpdir} --cov --cov-append --cov-report=term-missing -vv -rA \
16+
pytest --numprocesses auto --basetemp={envtmpdir} --cov --cov-append --cov-report=term-missing -vv -rA \
1717
# Ignore tests that require a non-headless browser and are only supported on a local machine:
1818
--ignore=test/browser/input/select_1_test.py \
1919
--ignore=test/browser/input/select_headless_exception_test.py \

0 commit comments

Comments
Β (0)