Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit ff2129e

Browse files
committed
adds pytest-xdist to nox system session for experimentation
1 parent d083549 commit ff2129e

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

noxfile.py

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,12 @@ def system(session):
226226

227227
# Install all test dependencies, then install local packages in place.
228228
session.install(
229-
"pytest", "psutil", "google-cloud-testutils", "-c", constraints_path
229+
"pytest",
230+
"psutil",
231+
"pytest-xdist",
232+
"google-cloud-testutils",
233+
"-c",
234+
constraints_path,
230235
)
231236
if os.environ.get("GOOGLE_API_USE_CLIENT_CERTIFICATE", "") == "true":
232237
# mTLS test requires pyopenssl and latest google-cloud-storage
@@ -259,6 +264,7 @@ def system(session):
259264
# Run py.test against the system tests.
260265
session.run(
261266
"py.test",
267+
"-n=auto",
262268
"--quiet",
263269
"-W default::PendingDeprecationWarning",
264270
os.path.join("tests", "system"),

0 commit comments

Comments
 (0)