@@ -424,7 +424,8 @@ def prerelease_deps(session):
424
424
425
425
# Install all dependencies
426
426
session .install ("-e" , ".[all, tests, tracing]" )
427
- session .install (* UNIT_TEST_STANDARD_DEPENDENCIES )
427
+ unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
428
+ session .install (* unit_deps_all )
428
429
system_deps_all = (
429
430
SYSTEM_TEST_STANDARD_DEPENDENCIES
430
431
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
@@ -453,12 +454,6 @@ def prerelease_deps(session):
453
454
454
455
session .install (* constraints_deps )
455
456
456
- if os .path .exists ("samples/snippets/requirements.txt" ):
457
- session .install ("-r" , "samples/snippets/requirements.txt" )
458
-
459
- if os .path .exists ("samples/snippets/requirements-test.txt" ):
460
- session .install ("-r" , "samples/snippets/requirements-test.txt" )
461
-
462
457
prerel_deps = [
463
458
"protobuf" ,
464
459
# dependency of grpc
@@ -495,11 +490,19 @@ def prerelease_deps(session):
495
490
system_test_folder_path = os .path .join ("tests" , "system" )
496
491
497
492
# Only run system tests if found.
498
- if os .path .exists (system_test_path ) or os .path .exists (system_test_folder_path ):
499
- session .run ("py.test" , "tests/system" )
500
-
501
- snippets_test_path = os .path .join ("samples" , "snippets" )
502
-
503
- # Only run samples tests if found.
504
- if os .path .exists (snippets_test_path ):
505
- session .run ("py.test" , "samples/snippets" )
493
+ if os .path .exists (system_test_path ):
494
+ session .run (
495
+ "py.test" ,
496
+ "--verbose" ,
497
+ f"--junitxml=system_{ session .python } _sponge_log.xml" ,
498
+ system_test_path ,
499
+ * session .posargs ,
500
+ )
501
+ if os .path .exists (system_test_folder_path ):
502
+ session .run (
503
+ "py.test" ,
504
+ "--verbose" ,
505
+ f"--junitxml=system_{ session .python } _sponge_log.xml" ,
506
+ system_test_folder_path ,
507
+ * session .posargs ,
508
+ )
0 commit comments