Skip to content

Commit 59dce5b

Browse files
busunkim96parthea
andauthored
chore: fail samples nox session if python version is missing (#1225)
Co-authored-by: Anthonios Partheniou <partheniou@google.com>
1 parent 595dbf0 commit 59dce5b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

synthtool/gcp/templates/python_samples/noxfile.py.j2

+4
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ INSTALL_LIBRARY_FROM_SOURCE = os.environ.get("INSTALL_LIBRARY_FROM_SOURCE", Fals
9898
"True",
9999
"true",
100100
)
101+
102+
# Error if a python version is missing
103+
nox.options.error_on_missing_interpreters = True
104+
101105
#
102106
# Style Checks
103107
#

0 commit comments

Comments
 (0)