diff --git a/.kokoro/test-samples-impl.sh b/.kokoro/test-samples-impl.sh index 8a324c9..7752759 100755 --- a/.kokoro/test-samples-impl.sh +++ b/.kokoro/test-samples-impl.sh @@ -76,7 +76,7 @@ for file in samples/**/requirements.txt; do echo "------------------------------------------------------------" # Use nox to execute the tests for the project. - python3.6 -m nox -s "$RUN_TESTS_SESSION" + python3.6 -m nox -s "$RUN_TESTS_SESSION" --verbose EXIT=$? # If this is a periodic build, send the test log to the FlakyBot. diff --git a/samples/snippets/noxfile.py b/samples/snippets/noxfile.py index 20cdfc6..4ca4081 100644 --- a/samples/snippets/noxfile.py +++ b/samples/snippets/noxfile.py @@ -103,6 +103,8 @@ def get_pytest_env_vars() -> Dict[str, str]: # Error if a python version is missing nox.options.error_on_missing_interpreters = True +nox.options.verbose = True + # # Style Checks # @@ -195,6 +197,7 @@ def _session_tests( pip_version = TEST_CONFIG["pip_version_override"] session.install(f"pip=={pip_version}") """Runs py.test for a particular project.""" + if os.path.exists("requirements.txt"): if os.path.exists("constraints.txt"): session.install("-r", "requirements.txt", "-c", "constraints.txt") @@ -215,6 +218,9 @@ def _session_tests( if post_install: post_install(session) + session.install("--upgrade", "protobuf", silent=False) + session.install("proto-plus==1.20.1", silent=False) + session.run( "pytest", *(PYTEST_COMMON_ARGS + session.posargs),