Skip to content

Commit 9dc166a

Browse files
chore: set the default python version for templates to 3.10 (#1233)
* chore: set the default python version for templates to 3.10 * 🦉 Updates from OwlBot post-processor See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md * add workaround --------- Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
1 parent 624d381 commit 9dc166a

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.github/workflows/docs.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.9"
15+
python-version: "3.10"
1616
- name: Install nox
1717
run: |
1818
python -m pip install --upgrade setuptools pip wheel

.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.8"
15+
python-version: "3.10"
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
@@ -42,7 +42,7 @@ jobs:
4242
- name: Setup Python
4343
uses: actions/setup-python@v5
4444
with:
45-
python-version: "3.8"
45+
python-version: "3.10"
4646
- name: Install coverage
4747
run: |
4848
python -m pip install --upgrade setuptools pip wheel

owlbot.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
# Add templated files
3131
# ----------------------------------------------------------------------------
3232
templated_files = common.py_library(
33+
default_python_version="3.10",
3334
unit_test_python_versions=["3.9", "3.10", "3.11", "3.12"],
3435
system_test_python_versions=["3.9", "3.11", "3.12"],
3536
cov_level=35,
@@ -53,6 +54,8 @@
5354
".kokoro/build.sh",
5455
".kokoro/continuous/common.cfg",
5556
".kokoro/presubmit/common.cfg",
57+
# Temporary workaround to update docs job to use python 3.10
58+
".github/workflows/docs.yml",
5659
],
5760
)
5861

0 commit comments

Comments
 (0)