|
20 | 20 | # Use Python 3.10 for docs to match the version for the sphinx plugin |
21 | 21 | # https://github.com/googleapis/synthtool/pull/1891 |
22 | 22 | DOCS_PYTHON: "3.10" |
23 | | - OLDEST_PYTHON: "3.7" |
24 | 23 | NEWEST_STABLE_PYTHON: "3.13" |
25 | 24 | PRERELEASE_PYTHON: "3.14" |
26 | 25 |
|
|
35 | 34 | run: | |
36 | 35 | all_python=$(echo ${{ vars.ALL_PYTHON }} | jq -Rrc 'split(",")') |
37 | 36 | 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" |
38 | 47 | docs: |
39 | 48 | runs-on: ubuntu-latest |
40 | 49 | steps: |
@@ -71,11 +80,12 @@ jobs: |
71 | 80 | - name: Check type annotations. |
72 | 81 | run: nox -s mypy-${{ matrix.python }} |
73 | 82 | showcase: |
| 83 | + needs: newest_oldest_python_setup |
74 | 84 | strategy: |
75 | 85 | # Run showcase tests on the lowest and highest supported runtimes |
76 | 86 | matrix: |
77 | 87 | # 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) }} |
79 | 89 | target: [showcase, showcase_w_rest_async] |
80 | 90 | logging_scope: ["", "google"] |
81 | 91 |
|
|
0 commit comments