From 26bf3e940a1e03ed2d3d7ce91cd74d51877f5ecd Mon Sep 17 00:00:00 2001 From: Vitor Bandeira Date: Mon, 9 Nov 2026 14:19:16 -0300 Subject: [PATCH] ci: run Python workflows on 3.12 Set python-version to 3.12 in the lint-tcl, yaml-test, update-rules, and manual-update-rules workflows. Regenerate .github/requirements/requirements_lock.txt for Python 3.12 with hashes (uv pip compile). The 3.10 backports exceptiongroup and tomli drop out. setuptools is now pinned, because ruyaml needs it and a Python 3.12 venv does not include it. tclint stays at 0.7.0. Signed-off-by: Vitor Bandeira --- .github/requirements/requirements_lock.txt | 36 +++++-------------- .github/workflows/github-actions-lint-tcl.yml | 2 +- .../github-actions-manual-update-rules.yml | 2 +- .../workflows/github-actions-update-rules.yml | 2 +- .../workflows/github-actions-yaml-test.yml | 2 +- 5 files changed, 13 insertions(+), 31 deletions(-) diff --git a/.github/requirements/requirements_lock.txt b/.github/requirements/requirements_lock.txt index 1ae337786f..06e0b74f43 100644 --- a/.github/requirements/requirements_lock.txt +++ b/.github/requirements/requirements_lock.txt @@ -1,9 +1,5 @@ -# -# This file is autogenerated by pip-compile with Python 3.10 -# by the following command: -# -# pip-compile --generate-hashes --output-file=.github/requirements/requirements_lock.txt .github/requirements/requirements.in -# +# This file was autogenerated by uv via the following command: +# uv pip compile --generate-hashes --python-version 3.12 --output-file=.github/requirements/requirements_lock.txt .github/requirements/requirements.in annotated-types==0.7.0 \ --hash=sha256:1f02e8b43a8fbbc3f3e0d4f0f4bfc8131bcb4eebe8849b8e5c773f3a1c582a53 \ --hash=sha256:aff07c09a53a08bc8cfccb9c85b05f1aa9a2a6f23728d790723543408344ce89 @@ -315,17 +311,11 @@ distro==1.9.0 \ --hash=sha256:2fa77c6fd8940f116ee1d6b94a2f90b13b5ea8d019b98bc8bafdcabcdd9bdbed \ --hash=sha256:7bffd925d65168f85027d8da9af6bddab658135b840670a223589bc0c8ef02b2 # via ruyaml -exceptiongroup==1.3.1 \ - --hash=sha256:8b412432c6055b0b7d14c310000ae93352ed6754f70fa8f7c34141f91c4e3219 \ - --hash=sha256:a7a39a3bd276781e98394987d3a5701d0c4edffb633bb7a5144577f82c773598 - # via - # anyio - # cattrs firebase-admin==7.4.0 \ --hash=sha256:08d7550efdba32fbd306141ce82150f9ffb91c1550e07aa4ed5757af4895d1ff \ --hash=sha256:416967d1aacd30cfece2a5b0c606a52ba7614eb3093f054399be3868489cd7a8 # via -r .github/requirements/requirements.in -google-api-core[grpc]==2.30.3 \ +google-api-core==2.30.3 \ --hash=sha256:a85761ba72c444dad5d611c2220633480b2b6be2521eca69cca2dbb3ffd6bfe8 \ --hash=sha256:e601a37f148585319b26db36e219df68c5d07b6382cff2d580e83404e44d641b # via @@ -488,7 +478,7 @@ httpcore==1.0.9 \ --hash=sha256:2d400746a40668fc9dec9810239072b40b4484b640a8c38fd654a024c7a1bf55 \ --hash=sha256:6e34463af53fd2ab5d807f399a9b45ea31c3dfa2276f15a2c3f00afff6e176e8 # via httpx -httpx[http2]==0.28.1 \ +httpx==0.28.1 \ --hash=sha256:75e98c5f16b0f35b567856f597f06ff2270a374470a5c2392242528e3e3e42fc \ --hash=sha256:d909fcccc110f8c7faf814ca82a9a4d816bc5a6dbfea25d6591d6985b8ba59ad # via firebase-admin @@ -752,7 +742,7 @@ pygls==1.3.1 \ --hash=sha256:140edceefa0da0e9b3c533547c892a42a7d2fd9217ae848c330c53d266a55018 \ --hash=sha256:6e00f11efc56321bdeb6eac04f6d86131f654c7d49124344a9ebb968da3dd91e # via tclint -pyjwt[crypto]==2.13.0 \ +pyjwt==2.13.0 \ --hash=sha256:41571c89ca91598c79e8ef18a2d07367d4810fbbd6f637794879baf1b7703423 \ --hash=sha256:66adcc2aff09b3f1bbd95fc1e1577df8ac8723c978552fd43304c8a290ac5728 # via firebase-admin @@ -842,6 +832,10 @@ ruyaml==0.91.0 \ --hash=sha256:50e0ee3389c77ad340e209472e0effd41ae0275246df00cdad0a067532171755 \ --hash=sha256:6ce9de9f4d082d696d3bde264664d1bcdca8f5a9dff9d1a1f1a127969ab871ab # via yamlfix +setuptools==84.2.1 \ + --hash=sha256:3ff8b3b5492a0aa66960f4419365a86b84e013070d4313e4d4a6894f5d64d6bc \ + --hash=sha256:ca140b45d5325a9478f880e351484f62fef15f336462e449ca0c03c873d589c2 + # via ruyaml tclint==0.7.0 \ --hash=sha256:58b54bf333a96ef4b4eac3bde23da997a64a4414a4cdec8e5e0a9fbafb6dcd25 \ --hash=sha256:bd605b11d44708e1537b902e63d7dd1d05f2d85c2c99a36854b157606eac1e8a @@ -850,22 +844,15 @@ toml==0.10.2 \ --hash=sha256:806143ae5bfb6a3c6e736a764057db0e6a0e05e338b5630894a5f779cabb4f9b \ --hash=sha256:b3bda1d108d5dd99f4a20d24d9c348e91c4db7ab1b749200bded2f839ccbe68f # via maison -tomli==2.0.2 \ - --hash=sha256:2ebe24485c53d303f690b0ec092806a085f07af5a5aa1464f3931eec36caaa38 \ - --hash=sha256:d46d457a85337051c36524bc5349dd91b1877838e2979ac5ced3e710ed8a60ed - # via tclint typing-extensions==4.15.0 \ --hash=sha256:0cea48d173cc12fa28ecabc3b837ea3cf6f38c6d1136f85cbaaf598984861466 \ --hash=sha256:f0fa19c6845758ab08074a0cfa8b7aecb71c999ca73d62883bc25cc018c4e548 # via # anyio # cattrs - # cryptography - # exceptiongroup # grpcio # pydantic # pydantic-core - # pyjwt # typing-inspection typing-inspection==0.4.2 \ --hash=sha256:4ed1cacbdc298c220f1bd249ed5287caa16f34d44ef4e9c3d0cbad5b521545e7 \ @@ -887,8 +874,3 @@ zipp==4.1.0 \ --hash=sha256:25ad4e16390cd314347dd8f1de67a2ac538ae658ed4ab9db16029c07c188e97f \ --hash=sha256:4cb57381f544315db7688e976e922a2b18cdb513d21cc194eb42232ba2a3e602 # via importlib-metadata - -# WARNING: The following packages were not pinned, but pip requires them to be -# pinned when the requirements file includes hashes and the requirement is not -# satisfied by a package already installed. Consider using the --allow-unsafe flag. -# setuptools diff --git a/.github/workflows/github-actions-lint-tcl.yml b/.github/workflows/github-actions-lint-tcl.yml index c9115f3316..243374d04b 100644 --- a/.github/workflows/github-actions-lint-tcl.yml +++ b/.github/workflows/github-actions-lint-tcl.yml @@ -20,7 +20,7 @@ jobs: - uses: actions/setup-python@v7 with: - python-version: "3.10" + python-version: "3.12" - name: Install Dependencies run: | diff --git a/.github/workflows/github-actions-manual-update-rules.yml b/.github/workflows/github-actions-manual-update-rules.yml index b5055122ea..22e31e691a 100644 --- a/.github/workflows/github-actions-manual-update-rules.yml +++ b/.github/workflows/github-actions-manual-update-rules.yml @@ -22,7 +22,7 @@ jobs: fetch-depth: 0 - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: - python-version: "3.10" + python-version: "3.12" - name: Install Python Packages run: | python3 -m venv venv diff --git a/.github/workflows/github-actions-update-rules.yml b/.github/workflows/github-actions-update-rules.yml index 4ccd074581..b2977b645f 100644 --- a/.github/workflows/github-actions-update-rules.yml +++ b/.github/workflows/github-actions-update-rules.yml @@ -25,7 +25,7 @@ jobs: git checkout "origin/pr/${{ github.event.client_payload.branch }}" - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 with: - python-version: "3.10" + python-version: "3.12" - name: Install Python Packages run: | python3 -m venv venv diff --git a/.github/workflows/github-actions-yaml-test.yml b/.github/workflows/github-actions-yaml-test.yml index 4ba26bc9ff..a3a4815748 100644 --- a/.github/workflows/github-actions-yaml-test.yml +++ b/.github/workflows/github-actions-yaml-test.yml @@ -24,7 +24,7 @@ jobs: .github/requirements/requirements_lock.txt - uses: actions/setup-python@v7 with: - python-version: "3.10" + python-version: "3.12" - name: Install dependencies run: | python3 -m venv venv