@@ -334,7 +334,8 @@ def prerelease_deps(session):
334334
335335 # Install all dependencies
336336 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 )
338339 system_deps_all = (
339340 SYSTEM_TEST_STANDARD_DEPENDENCIES
340341 + SYSTEM_TEST_EXTERNAL_DEPENDENCIES
@@ -363,12 +364,6 @@ def prerelease_deps(session):
363364
364365 session .install (* constraints_deps )
365366
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-
372367 prerel_deps = [
373368 "protobuf" ,
374369 # dependency of grpc
@@ -405,11 +400,19 @@ def prerelease_deps(session):
405400 system_test_folder_path = os .path .join ("tests" , "system" )
406401
407402 # 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