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

Commit 1ee1627

Browse files
committed
update syntax
1 parent c88a268 commit 1ee1627

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

.github/workflows/tests.yaml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ env:
2020
# Use Python 3.10 for docs to match the version for the sphinx plugin
2121
# https://github.com/googleapis/synthtool/pull/1891
2222
DOCS_PYTHON: "3.10"
23-
OLDEST_PYTHON: "3.7"
2423
NEWEST_STABLE_PYTHON: "3.13"
2524
PRERELEASE_PYTHON: "3.14"
2625

@@ -35,6 +34,16 @@ jobs:
3534
run: |
3635
all_python=$(echo ${{ vars.ALL_PYTHON }} | jq -Rrc 'split(",")')
3736
echo "all_python=$all_python" >> "$GITHUB_OUTPUT"
37+
newest_oldest_python_setup:
38+
runs-on: ubuntu-latest
39+
outputs:
40+
all_python: ${{ steps.newest_oldest_python.outputs.all_python }}
41+
steps:
42+
- name: Set up newest and oldest python
43+
id: newest_oldest_python_setup
44+
run: |
45+
newest_oldest_python=$(echo ${{ vars.ALL_PYTHON }} | jq -Rrc 'split(",")[0, -1]' )
46+
echo "newest_oldest_python=$newest_oldest_python" >> "$GITHUB_OUTPUT"
3847
docs:
3948
runs-on: ubuntu-latest
4049
steps:
@@ -71,11 +80,12 @@ jobs:
7180
- name: Check type annotations.
7281
run: nox -s mypy-${{ matrix.python }}
7382
showcase:
83+
needs: newest_oldest_python_setup
7484
strategy:
7585
# Run showcase tests on the lowest and highest supported runtimes
7686
matrix:
7787
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2121) Remove `showcase_w_rest_async` target when async rest is GA.
78-
python: [${OLDEST_PYTHON}, ${NEWEST_STABLE_PYTHON}]
88+
python: ${{ fromJSON(needs.newest_oldest_python_setup.outputs.newest_oldest_python) }}
7989
target: [showcase, showcase_w_rest_async]
8090
logging_scope: ["", "google"]
8191

0 commit comments

Comments
 (0)