Skip to content

Commit fcda42a

Browse files
chore: new owl bot post processor docker image (#677)
gcr.io/repo-automation-bots/owlbot-python:latest@sha256:3c3a445b3ddc99ccd5d31edc4b4519729635d20693900db32c4f587ed51f7479
1 parent eed50b0 commit fcda42a

File tree

3 files changed

+17
-3
lines changed

3 files changed

+17
-3
lines changed

.github/.OwlBot.lock.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
docker:
22
image: gcr.io/repo-automation-bots/owlbot-python:latest
3-
digest: sha256:4c981a6b6f2b8914a448d7b3a01688365be03e3ed26dfee399a6aa77fb112eaa
3+
digest: sha256:3c3a445b3ddc99ccd5d31edc4b4519729635d20693900db32c4f587ed51f7479

samples/geography/noxfile.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
# to use your own Cloud project.
4949
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
5050
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
51+
# If you need to use a specific version of pip,
52+
# change pip_version_override to the string representation
53+
# of the version number, for example, "20.2.4"
54+
"pip_version_override": None,
5155
# A dictionary you want to inject into your test. Don't put any
5256
# secrets here. These values will override predefined values.
5357
"envs": {},
@@ -172,6 +176,9 @@ def blacken(session: nox.sessions.Session) -> None:
172176
def _session_tests(
173177
session: nox.sessions.Session, post_install: Callable = None
174178
) -> None:
179+
if TEST_CONFIG["pip_version_override"]:
180+
pip_version = TEST_CONFIG["pip_version_override"]
181+
session.install(f"pip=={pip_version}")
175182
"""Runs py.test for a particular project."""
176183
if os.path.exists("requirements.txt"):
177184
if os.path.exists("constraints.txt"):
@@ -198,7 +205,7 @@ def _session_tests(
198205
# on travis where slow and flaky tests are excluded.
199206
# See http://doc.pytest.org/en/latest/_modules/_pytest/main.html
200207
success_codes=[0, 5],
201-
env=get_pytest_env_vars()
208+
env=get_pytest_env_vars(),
202209
)
203210

204211

samples/snippets/noxfile.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
# to use your own Cloud project.
4949
"gcloud_project_env": "GOOGLE_CLOUD_PROJECT",
5050
# 'gcloud_project_env': 'BUILD_SPECIFIC_GCLOUD_PROJECT',
51+
# If you need to use a specific version of pip,
52+
# change pip_version_override to the string representation
53+
# of the version number, for example, "20.2.4"
54+
"pip_version_override": None,
5155
# A dictionary you want to inject into your test. Don't put any
5256
# secrets here. These values will override predefined values.
5357
"envs": {},
@@ -172,6 +176,9 @@ def blacken(session: nox.sessions.Session) -> None:
172176
def _session_tests(
173177
session: nox.sessions.Session, post_install: Callable = None
174178
) -> None:
179+
if TEST_CONFIG["pip_version_override"]:
180+
pip_version = TEST_CONFIG["pip_version_override"]
181+
session.install(f"pip=={pip_version}")
175182
"""Runs py.test for a particular project."""
176183
if os.path.exists("requirements.txt"):
177184
if os.path.exists("constraints.txt"):
@@ -198,7 +205,7 @@ def _session_tests(
198205
# on travis where slow and flaky tests are excluded.
199206
# See http://doc.pytest.org/en/latest/_modules/_pytest/main.html
200207
success_codes=[0, 5],
201-
env=get_pytest_env_vars()
208+
env=get_pytest_env_vars(),
202209
)
203210

204211

0 commit comments

Comments
 (0)