Skip to content

Commit d9a03b4

Browse files
chore: fail samples nox session if python version is missing (#997)
1 parent b376541 commit d9a03b4

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.github/.OwlBot.lock.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
docker:
22
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
3-
digest: sha256:87eee22d276554e4e52863ec9b1cb6a7245815dfae20439712bf644348215a5a
3+
digest: sha256:82b12321da4446a73cb11bcb6812fbec8c105abda3946d46e6394e5fbfb64c0f

samples/geography/noxfile.py

+4
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
#

samples/snippets/noxfile.py

+4
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)