mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-02 07:18:25 +01:00
deps (tests): require pytest-xdist>=3.2, use -n=logical workers and workstealing scheduler (#9116)
This commit is contained in:
@@ -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
@@ -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
@@ -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:]]))
|
||||
|
||||
Reference in New Issue
Block a user