Skip to content
This repository was archived by the owner on Sep 21, 2023. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .kokoro/test-samples-impl.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
6 changes: 6 additions & 0 deletions samples/snippets/noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
#
Expand Down Expand Up @@ -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")
Expand All @@ -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),
Expand Down