Skip to content

Commit 9b2f079

Browse files
authored
build: use ubuntu 22.04 for tests (#13377)
This PR resolves the following issue [when running Python 3.7 tests](https://github.com/googleapis/google-cloud-python/actions/runs/12406551833/job/34635201044?pr=13374) : ``` Version 3.7 was not found in the local cache Error: The version '3.7' with architecture 'x64' was not found for Ubuntu 24.04. ```
1 parent e6daff5 commit 9b2f079

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/unittest.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ permissions:
1313

1414
jobs:
1515
unit:
16-
runs-on: ubuntu-latest
16+
# TODO(https://github.com/googleapis/gapic-generator-python/issues/2303): use `ubuntu-latest` once this bug is fixed.
17+
# Use ubuntu-22.04 until Python 3.7 is removed from the test matrix
18+
# https://docs.github.com/en/actions/using-github-hosted-runners/using-github-hosted-runners/about-github-hosted-runners#standard-github-hosted-runners-for-public-repositories
19+
runs-on: ubuntu-22.04
1720
strategy:
1821
matrix:
1922
python: ['3.7', '3.8', '3.9', '3.10', "3.11", "3.12", "3.13"]

0 commit comments

Comments
 (0)