6060 target : [showcase, showcase_alternative_templates, showcase_w_rest_async]
6161 logging_scope : ["", "google"]
6262
63- runs-on : ubuntu-latest
63+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
64+ # Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
65+ runs-on : ubuntu-22.04
6466 steps :
6567 - uses : actions/checkout@v4
6668 - name : Set up Python "${{ matrix.python }}"
@@ -149,7 +151,10 @@ jobs:
149151 # TODO(https://github.com/googleapis/gapic-generator-python/issues/2121) Remove `_w_rest_async` variant when async rest is GA.
150152 variant : ['', _alternative_templates, _mixins, _alternative_templates_mixins, _w_rest_async]
151153 logging_scope : ["", "google"]
152- runs-on : ubuntu-latest
154+
155+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
156+ # Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
157+ runs-on : ubuntu-22.04
153158 steps :
154159 - uses : actions/checkout@v4
155160 - name : Set up Python "${{ matrix.python }}"
@@ -250,7 +255,10 @@ jobs:
250255 strategy :
251256 matrix :
252257 python : ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
253- runs-on : ubuntu-latest
258+
259+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
260+ # Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
261+ runs-on : ubuntu-22.04
254262 steps :
255263 - uses : actions/checkout@v4
256264 - name : Set up Python ${{ matrix.python }}
@@ -272,7 +280,10 @@ jobs:
272280 matrix :
273281 python : ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
274282 variant : ['', _alternative_templates]
275- runs-on : ubuntu-latest
283+
284+ # TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
285+ # Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
286+ runs-on : ubuntu-22.04
276287 steps :
277288 - uses : actions/checkout@v4
278289 - name : Set up Python ${{ matrix.python }}
@@ -379,7 +390,7 @@ jobs:
379390 nox -f tests/integration/goldens/eventarc/noxfile.py -s prerelease_deps
380391 nox -f tests/integration/goldens/logging/noxfile.py -s prerelease_deps
381392 nox -f tests/integration/goldens/redis/noxfile.py -s prerelease_deps
382- style-check :
393+ lint :
383394 runs-on : ubuntu-latest
384395 steps :
385396 - uses : actions/checkout@v4
@@ -388,9 +399,9 @@ jobs:
388399 with :
389400 python-version : " 3.13"
390401 cache : ' pip'
391- - name : Install autopep8
402+ - name : Install nox.
392403 run : |
393- python -m pip install autopep8
394- - name : Check diff
404+ python -m pip install nox
405+ - name : Run lint
395406 run : |
396- find gapic tests -name "*.py" -not -path 'tests/**/goldens/*' | xargs autopep8 --diff --exit-code
407+ nox -s lint
0 commit comments