Skip to content
This repository was archived by the owner on Mar 6, 2026. It is now read-only.

Commit eef618d

Browse files
committed
tests: update default runtime used for tests
1 parent ca94ead commit eef618d

3 files changed

Lines changed: 12 additions & 7 deletions

File tree

noxfile.py

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,11 @@
3333
"docs/conf.py",
3434
]
3535

36+
DEFAULT_PYTHON_VERSION = "3.10"
37+
# Error if a python version is missing
38+
nox.options.error_on_missing_interpreters = True
3639

37-
@nox.session(python="3.8")
40+
@nox.session(python=DEFAULT_PYTHON_VERSION)
3841
def lint(session):
3942
session.install(
4043
"flake8", "flake8-import-order", "docutils", CLICK_VERSION, BLACK_VERSION
@@ -54,7 +57,7 @@ def lint(session):
5457
)
5558

5659

57-
@nox.session(python="3.8")
60+
@nox.session(python=DEFAULT_PYTHON_VERSION)
5861
def blacken(session):
5962
"""Run black.
6063
Format code to uniform standard.
@@ -67,7 +70,7 @@ def blacken(session):
6770
session.run("black", *BLACK_PATHS)
6871

6972

70-
@nox.session(python="3.8")
73+
@nox.session(python=DEFAULT_PYTHON_VERSION)
7174
def mypy(session):
7275
"""Verify type hints are mypy compatible."""
7376
session.install("-e", ".")
@@ -84,7 +87,9 @@ def mypy(session):
8487
session.run("mypy", "-p", "google", "-p", "tests", "-p", "tests_async")
8588

8689

87-
@nox.session(python=["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"])
90+
# TODO(https://github.com/googleapis/google-auth-library-python-oauthlib/issues/410):
91+
# Remove or restore testing for Python 3.7/3.8
92+
@nox.session(python=["3.9", "3.10", "3.11", "3.12", "3.13"])
8893
def unit(session):
8994
constraints_path = str(
9095
CURRENT_DIRECTORY / "testing" / f"constraints-{session.python}.txt"
@@ -102,7 +107,7 @@ def unit(session):
102107
)
103108

104109

105-
@nox.session(python="3.8")
110+
@nox.session(python=DEFAULT_PYTHON_VERSION)
106111
def cover(session):
107112
session.install("-e", ".[testing]")
108113
session.run(

system_tests/noxfile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,8 +163,8 @@ def configure_cloud_sdk(session, application_default_credentials, project=False)
163163

164164
TEST_DEPENDENCIES_ASYNC = ["aiohttp", "pytest-asyncio", "nest-asyncio", "mock"]
165165
TEST_DEPENDENCIES_SYNC = ["pytest", "requests", "mock", "pyjwt"]
166-
PYTHON_VERSIONS_ASYNC = ["3.7"]
167-
PYTHON_VERSIONS_SYNC = ["3.7"]
166+
PYTHON_VERSIONS_ASYNC = ["3.10"]
167+
PYTHON_VERSIONS_SYNC = ["3.10"]
168168

169169

170170
def default(session, *test_paths):

0 commit comments

Comments
 (0)