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