@@ -16,6 +16,7 @@ concurrency:
1616env :
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
2021jobs :
2122 docs :
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
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