Skip to content

Commit 516511d

Browse files
authored
tests: update default python runtime for tests to 3.14 (#340)
Similar to googleapis/python-api-core#870
1 parent dc9aa13 commit 516511d

File tree

5 files changed

+14
-14
lines changed

5 files changed

+14
-14
lines changed

.github/workflows/lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.10"
15+
python-version: "3.14"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.github/workflows/mypy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
- name: Setup Python
1313
uses: actions/setup-python@v5
1414
with:
15-
python-version: "3.8"
15+
python-version: "3.14"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.github/workflows/unittest.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ jobs:
4545
- name: Setup Python
4646
uses: actions/setup-python@v5
4747
with:
48-
python-version: "3.8"
48+
python-version: "3.14"
4949
- name: Install coverage
5050
run: |
5151
python -m pip install --upgrade setuptools pip wheel

noxfile.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@
2222
BLACK_VERSION = "black==23.7.0"
2323
BLACK_PATHS = ["docs", "google", "tests", "noxfile.py", "setup.py"]
2424

25-
DEFAULT_PYTHON_VERSION = "3.8"
25+
DEFAULT_PYTHON_VERSION = "3.14"
2626
CURRENT_DIRECTORY = os.path.abspath(os.path.dirname(__file__))
2727

2828
# Error if a python version is missing
2929
nox.options.error_on_missing_interpreters = True
3030

3131

32-
@nox.session(python="3.10")
32+
@nox.session(python=DEFAULT_PYTHON_VERSION)
3333
def lint(session):
3434
"""Run linters.
3535
@@ -102,11 +102,11 @@ def unit(session):
102102
default(session)
103103

104104

105-
@nox.session(python="3.10")
105+
@nox.session(python=DEFAULT_PYTHON_VERSION)
106106
def lint_setup_py(session):
107107
"""Verify that setup.py is valid (including RST check)."""
108108

109-
session.install("docutils", "Pygments")
109+
session.install("docutils", "Pygments", "setuptools")
110110
session.run("python", "setup.py", "check", "--restructuredtext", "--strict")
111111

112112

@@ -122,6 +122,8 @@ def cover(session):
122122
session.run("coverage", "erase")
123123

124124

125+
# Keep docs session at Python 3.10 until
126+
# https://github.com/googleapis/sphinx-docfx-yaml/issues/345 is fixed
125127
@nox.session(python="3.10")
126128
def docs(session):
127129
"""Build the docs for this library."""
@@ -158,6 +160,8 @@ def docs(session):
158160
)
159161

160162

163+
# Keep docfx session at Python 3.10 until
164+
# https://github.com/googleapis/sphinx-docfx-yaml/issues/345 is fixed
161165
@nox.session(python="3.10")
162166
def docfx(session):
163167
"""Build the docfx yaml files for this library."""

pytest.ini

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,6 @@ filterwarnings =
99
# Remove once the minimum supported version of `google-api-core` is 2.15.0
1010
ignore:.*pkg_resources.declare_namespace:DeprecationWarning
1111
ignore:.*pkg_resources is deprecated as an API:DeprecationWarning
12-
# Remove after support for Python 3.8 is dropped
13-
ignore:You are using a non-supported Python version \(3\.8:DeprecationWarning
14-
ignore:You are using a non-supported Python version \(3\.8:FutureWarning
15-
# Remove after support for Python 3.9 is dropped
16-
ignore:You are using a Python version \(3\.9:FutureWarning
17-
# Remove after support for Python 3.10 is dropped
18-
ignore:.*You are using a Python version \(3\.10:FutureWarning
12+
# Remove after support for Python 3.8, 3.9 and/or 3.10+ is dropped
13+
ignore:\s*You are using a (non-supported )?Python version \(?3\.(8|9|1[0-9]+):DeprecationWarning
14+
ignore:\s*You are using a (non-supported )?Python version \(?3\.(8|9|1[0-9]+):FutureWarning

0 commit comments

Comments
 (0)