Skip to content

Commit 9d05c62

Browse files
authored
chore: run prerelease tests with Python 3.14 (#14619)
This PR fixes the error `Python interpreter 3.14 not found.` when running pre-release tests. See https://github.com/googleapis/google-cloud-python/actions/runs/18178779332/job/51750304401?pr=14616
1 parent c6088f9 commit 9d05c62

File tree

1 file changed

+34
-2
lines changed

1 file changed

+34
-2
lines changed

.github/workflows/unittest.yml

Lines changed: 34 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,13 +49,45 @@ jobs:
4949
with:
5050
name: coverage-artifact-${{ '{{' }} matrix.python {{ '}}' }}
5151
path: .coverage-${{ matrix.python }}
52-
unit-extended:
52+
unit-prerelease:
53+
name: ${{ matrix.option }}
54+
runs-on: ubuntu-latest
55+
strategy:
56+
matrix:
57+
python: ["3.14"]
58+
option: ["prerelease"]
59+
steps:
60+
- name: Checkout
61+
uses: actions/checkout@v4
62+
# Use a fetch-depth of 2 to avoid error `fatal: origin/main...HEAD: no merge base`
63+
# See https://github.com/googleapis/google-cloud-python/issues/12013
64+
# and https://github.com/actions/checkout#checkout-head.
65+
with:
66+
fetch-depth: 2
67+
- name: Setup Python
68+
uses: actions/setup-python@v5
69+
with:
70+
python-version: ${{ matrix.python }}
71+
allow-prereleases: true
72+
- name: Install nox
73+
run: |
74+
python -m pip install --upgrade setuptools pip wheel
75+
python -m pip install nox
76+
- name: Run ${{ matrix.option }} tests
77+
env:
78+
BUILD_TYPE: presubmit
79+
TEST_TYPE: ${{ matrix.option }}
80+
# TODO(https://github.com/googleapis/google-cloud-python/issues/13775): Specify `PY_VERSION` rather than relying on the default python version of the nox session.
81+
PY_VERSION: "unused"
82+
run: |
83+
ci/run_conditional_tests.sh
84+
unit-core-deps-from-source:
5385
name: ${{ matrix.option }}
5486
runs-on: ubuntu-latest
5587
strategy:
5688
matrix:
5789
python: ["3.13"]
58-
option: ["prerelease", "core_deps_from_source"]
90+
option: ["core_deps_from_source"]
5991
steps:
6092
- name: Checkout
6193
uses: actions/checkout@v4

0 commit comments

Comments
 (0)