@@ -335,7 +335,8 @@ def prerelease_deps(session):
335
335
336
336
# Install all dependencies
337
337
session .install ("-e" , ".[all, tests, tracing]" )
338
- session .install (* UNIT_TEST_STANDARD_DEPENDENCIES )
338
+ unit_deps_all = UNIT_TEST_STANDARD_DEPENDENCIES + UNIT_TEST_EXTERNAL_DEPENDENCIES
339
+ session .install (* unit_deps_all )
339
340
system_deps_all = (
340
341
SYSTEM_TEST_STANDARD_DEPENDENCIES
341
342
+ SYSTEM_TEST_EXTERNAL_DEPENDENCIES
@@ -364,12 +365,6 @@ def prerelease_deps(session):
364
365
365
366
session .install (* constraints_deps )
366
367
367
- if os .path .exists ("samples/snippets/requirements.txt" ):
368
- session .install ("-r" , "samples/snippets/requirements.txt" )
369
-
370
- if os .path .exists ("samples/snippets/requirements-test.txt" ):
371
- session .install ("-r" , "samples/snippets/requirements-test.txt" )
372
-
373
368
prerel_deps = [
374
369
"protobuf" ,
375
370
# dependency of grpc
@@ -406,11 +401,19 @@ def prerelease_deps(session):
406
401
system_test_folder_path = os .path .join ("tests" , "system" )
407
402
408
403
# Only run system tests if found.
409
- if os .path .exists (system_test_path ) or os .path .exists (system_test_folder_path ):
410
- session .run ("py.test" , "tests/system" )
411
-
412
- snippets_test_path = os .path .join ("samples" , "snippets" )
413
-
414
- # Only run samples tests if found.
415
- if os .path .exists (snippets_test_path ):
416
- session .run ("py.test" , "samples/snippets" )
404
+ if os .path .exists (system_test_path ):
405
+ session .run (
406
+ "py.test" ,
407
+ "--verbose" ,
408
+ f"--junitxml=system_{ session .python } _sponge_log.xml" ,
409
+ system_test_path ,
410
+ * session .posargs ,
411
+ )
412
+ if os .path .exists (system_test_folder_path ):
413
+ session .run (
414
+ "py.test" ,
415
+ "--verbose" ,
416
+ f"--junitxml=system_{ session .python } _sponge_log.xml" ,
417
+ system_test_folder_path ,
418
+ * session .posargs ,
419
+ )
0 commit comments