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