Skip to content

Commit 140bf6e

Browse files
chore(tests): run tests in parallel
1 parent 65f9b15 commit 140bf6e

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ dev-dependencies = [
6060
"importlib-metadata>=6.7.0",
6161
"rich>=13.7.1",
6262
"nest_asyncio==1.6.0",
63+
"pytest-xdist>=3.6.1",
6364
]
6465

6566
[tool.rye.scripts]
@@ -131,7 +132,7 @@ replacement = '[\1](https://github.com/openlayer-ai/openlayer-python/tree/main/\
131132

132133
[tool.pytest.ini_options]
133134
testpaths = ["tests"]
134-
addopts = "--tb=short"
135+
addopts = "--tb=short -n auto"
135136
xfail_strict = true
136137
asyncio_mode = "auto"
137138
asyncio_default_fixture_loop_scope = "session"

requirements-dev.lock

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ distro==1.8.0
3333
exceptiongroup==1.2.2
3434
# via anyio
3535
# via pytest
36+
execnet==2.1.1
37+
# via pytest-xdist
3638
filelock==3.12.4
3739
# via virtualenv
3840
h11==0.14.0
@@ -84,7 +86,9 @@ pygments==2.18.0
8486
pyright==1.1.399
8587
pytest==8.3.3
8688
# via pytest-asyncio
89+
# via pytest-xdist
8790
pytest-asyncio==0.24.0
91+
pytest-xdist==3.7.0
8892
python-dateutil==2.8.2
8993
# via pandas
9094
# via time-machine

0 commit comments

Comments
 (0)