Skip to content

Commit 7567d56

Browse files
gcf-owl-bot[bot]dandhlee
authored andcommitted
chore: fail samples nox session if python version is missing (#226)
1 parent b50a261 commit 7567d56

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

monitoring/snippets/v3/alerts-client/noxfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
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
#

monitoring/snippets/v3/cloud-client/noxfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
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
#

monitoring/snippets/v3/uptime-check-client/noxfile.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ def get_pytest_env_vars() -> Dict[str, str]:
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)