We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d904151 commit 8e50aa5Copy full SHA for 8e50aa5
.github/workflows/ci.yaml
@@ -16,7 +16,7 @@ env:
16
17
jobs:
18
run:
19
- name: Python ${{ matrix.python-version }} - ${{ cdist-group }}/4
+ name: Python ${{ matrix.python-version }} - ${{ matrix.cdist-group }}/4
20
runs-on: ubuntu-latest
21
timeout-minutes: 30
22
strategy:
src/pytest_databases/helpers.py
@@ -31,3 +31,7 @@ def get_xdist_worker_num() -> int | None:
31
if worker_id is None or worker_id == "master":
32
return None
33
return int(worker_id.replace("gw", ""))
34
+
35
36
+def get_xdist_worker_count() -> int:
37
+ return int(os.getenv("PYTEST_XDIST_WORKER_COUNT", 0))
0 commit comments