deps (tests): require pytest-xdist>=3.2, use -n=logical workers and workstealing scheduler (#9116)

This commit is contained in:
skshetry
2023-03-06 15:54:45 +05:45
committed by GitHub
parent e7d4f5b24e
commit c5a3566e49
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ jobs:
- name: run tests
timeout-minutes: 30
run: >
pytest -nauto --timeout=300 --durations=100
pytest -n=logical --timeout=300 --durations=100
--cov --cov-report=xml --cov-report=term
- name: upload coverage report
uses: codecov/codecov-action@v3
+2 -2
View File
@@ -101,7 +101,7 @@ tests = [
"pytest-mock",
"pytest-test-utils",
"pytest-timeout>=2",
"pytest-xdist>=3",
"pytest-xdist>=3.2",
'pywin32>=225; sys_platform == "win32"', # optional test dependency
]
webdav = ["dvc-webdav==2.19.1"]
@@ -131,7 +131,7 @@ known_first_party = ["dvc", "dvc_data", "dvc_objects", "dvc_render", "dvc_task",
profile = "black"
[tool.pytest.ini_options]
addopts = "-ra --cov-config pyproject.toml"
addopts = "-ra --cov-config pyproject.toml --dist worksteal"
filterwarnings = [
"error::pytest_mock.PytestMockWarning",
# remove when aiobotocore supports botocore>=1.29.13
+1 -1
View File
@@ -3,4 +3,4 @@ if __name__ == "__main__":
import pytest
sys.exit(pytest.main(["-v", "-n=auto", *sys.argv[1:]]))
sys.exit(pytest.main(["-v", "-n=logical", *sys.argv[1:]]))