Skip to content

Commit 5db96c7

Browse files
committed
build: clean up github action
1 parent 259f85e commit 5db96c7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/tests.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@ concurrency:
1616
env:
1717
SHOWCASE_VERSION: 0.35.0
1818
PROTOC_VERSION: 3.20.2
19+
ALL_PYTHON: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
1920

2021
jobs:
2122
docs:
@@ -38,7 +39,10 @@ jobs:
3839
matrix:
3940
# Run mypy on all of the supported python versions listed in setup.py
4041
# https://github.com/python/mypy/blob/master/setup.py
41-
python: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
42+
python: ${{ ALL_PYTHON }}
43+
exclude:
44+
# Remove once https://github.com/googleapis/gapic-generator-python/issues/2303 is fixed
45+
- python: 3.7
4246
runs-on: ubuntu-latest
4347
steps:
4448
- uses: actions/checkout@v4
@@ -56,7 +60,7 @@ jobs:
5660
# Run showcase tests on the lowest and highest supported runtimes
5761
matrix:
5862
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2121) Remove `showcase_w_rest_async` target when async rest is GA.
59-
python: ["3.7", "3.13"]
63+
python: ["${{ ALL_PYTHON }}[0]", "${{ ALL_PYTHON }}[-1]"]
6064
target: [showcase, showcase_alternative_templates, showcase_w_rest_async]
6165
logging_scope: ["", "google"]
6266

@@ -147,7 +151,7 @@ jobs:
147151
showcase-unit:
148152
strategy:
149153
matrix:
150-
python: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
154+
python: ${{ ALL_PYTHON }}
151155
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2121) Remove `_w_rest_async` variant when async rest is GA.
152156
variant: ['', _alternative_templates, _mixins, _alternative_templates_mixins, _w_rest_async]
153157
logging_scope: ["", "google"]

0 commit comments

Comments
 (0)