Skip to content

Commit 0c7d911

Browse files
committed
Add pytest-xdist to execute tests in parallel on CI ; Update workflow
1 parent 5ee2702 commit 0c7d911

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/opensearch.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ jobs:
5555
if: matrix.python-version == '3.10' && runner.os == 'Linux'
5656
run: hatch run docs
5757

58-
- name: Run tests
59-
run: hatch run test:cov-retry
58+
- name: Run tests in parallel
59+
run: hatch run test:cov-retry -n 4 # GA runner has 4 cores
6060

6161
- name: Run unit tests with lowest direct dependencies
6262
run: |

integrations/opensearch/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ dependencies = [
5858
"pytest-asyncio",
5959
"pytest-cov",
6060
"pytest-rerunfailures",
61+
"pytest-xdist",
6162
"mypy",
6263
"pip",
6364
"boto3",
@@ -164,4 +165,3 @@ exclude_lines = ["no cov", "if __name__ == .__main__.:", "if TYPE_CHECKING:"]
164165
minversion = "6.0"
165166
markers = ["unit: unit tests", "integration: integration tests"]
166167
asyncio_mode = "auto"
167-

0 commit comments

Comments
 (0)