Skip to content

Commit 8e50aa5

Browse files
committed
test fixes
1 parent d904151 commit 8e50aa5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ env:
1616

1717
jobs:
1818
run:
19-
name: Python ${{ matrix.python-version }} - ${{ cdist-group }}/4
19+
name: Python ${{ matrix.python-version }} - ${{ matrix.cdist-group }}/4
2020
runs-on: ubuntu-latest
2121
timeout-minutes: 30
2222
strategy:

src/pytest_databases/helpers.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,7 @@ def get_xdist_worker_num() -> int | None:
3131
if worker_id is None or worker_id == "master":
3232
return None
3333
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

Comments
 (0)