Skip to content

Commit 21ec84e

Browse files
chore: fail samples nox session if python version is missing (#17)
1 parent ef0ed8e commit 21ec84e

File tree

2 files changed

+5
-15
lines changed

2 files changed

+5
-15
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
# Copyright 2021 Google LLC
2-
#
3-
# Licensed under the Apache License, Version 2.0 (the "License");
4-
# you may not use this file except in compliance with the License.
5-
# You may obtain a copy of the License at
6-
#
7-
# http://www.apache.org/licenses/LICENSE-2.0
8-
#
9-
# Unless required by applicable law or agreed to in writing, software
10-
# distributed under the License is distributed on an "AS IS" BASIS,
11-
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12-
# See the License for the specific language governing permissions and
13-
# limitations under the License.
14-
151
docker:
162
image: gcr.io/cloud-devrel-public-resources/owlbot-python:latest
17-
digest: sha256:a3a85c2e0b3293068e47b1635b178f7e3d3845f2cfb8722de6713d4bbafdcd1d
3+
digest: sha256:82b12321da4446a73cb11bcb6812fbec8c105abda3946d46e6394e5fbfb64c0f

samples/snippets/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)