@@ -348,7 +348,8 @@ def prerelease_deps(session):
348
348
349
349
# Install all dependencies
350
350
session.install("-e", ".[all, tests, tracing]")
351
- session.install(*UNIT_TEST_STANDARD_DEPENDENCIES)
351
+ unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
352
+ session.install(*unit_deps_all)
352
353
system_deps_all = SYSTEM_TEST_STANDARD_DEPENDENCIES + SYSTEM_TEST_EXTERNAL_DEPENDENCIES + SYSTEM_TEST_EXTRAS
353
354
session.install(*system_deps_all)
354
355
@@ -373,12 +374,6 @@ def prerelease_deps(session):
373
374
374
375
session.install(*constraints_deps)
375
376
376
- if os.path.exists("samples/snippets/requirements.txt"):
377
- session.install("-r", "samples/snippets/requirements.txt")
378
-
379
- if os.path.exists("samples/snippets/requirements-test.txt"):
380
- session.install("-r", "samples/snippets/requirements-test.txt")
381
-
382
377
prerel_deps = [
383
378
"protobuf",
384
379
# dependency of grpc
@@ -415,11 +410,19 @@ def prerelease_deps(session):
415
410
system_test_folder_path = os.path.join("tests", "system")
416
411
417
412
# Only run system tests if found.
418
- if os.path.exists(system_test_path) or os.path.exists(system_test_folder_path):
419
- session.run("py.test", "tests/system")
420
-
421
- snippets_test_path = os.path.join("samples", "snippets")
422
-
423
- # Only run samples tests if found.
424
- if os.path.exists(snippets_test_path):
425
- session.run("py.test", "samples/snippets")
413
+ if os.path.exists(system_test_path):
414
+ session.run(
415
+ "py.test",
416
+ "--verbose",
417
+ f"--junitxml=system_{session.python}_sponge_log.xml",
418
+ system_test_path,
419
+ *session.posargs,
420
+ )
421
+ if os.path.exists(system_test_folder_path):
422
+ session.run(
423
+ "py.test",
424
+ "--verbose",
425
+ f"--junitxml=system_{session.python}_sponge_log.xml",
426
+ system_test_folder_path,
427
+ *session.posargs,
428
+ )
0 commit comments