From e4798167d6abc178d60b311f894e25f7f48cb684 Mon Sep 17 00:00:00 2001 From: Victor Martinez Date: Tue, 7 Jan 2025 14:02:01 +0100 Subject: [PATCH] github-actions: python 3.12 is the default when using ubuntu-latest (#42233) github-actions: python 3.12 is the default when using ubuntu-latest * check-docs uses python too * single quote (cherry picked from commit 6474305f130e18754b767ecceb5b6f476371b4ba) --- .github/workflows/check-default.yml | 5 +++++ .github/workflows/check-docs.yml | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/.github/workflows/check-default.yml b/.github/workflows/check-default.yml index f394815356c..9edcf7c2654 100644 --- a/.github/workflows/check-default.yml +++ b/.github/workflows/check-default.yml @@ -20,6 +20,11 @@ jobs: - uses: actions/setup-go@v5 with: go-version-file: .go-version + #  when using ubuntu-latest, python 3.10 is not the default version. + - name: Fix Code is not compatible with Python 3.12 + uses: actions/setup-python@v4 + with: + python-version: '3.10' - name: Run check-default run: | go install github.com/magefile/mage diff --git a/.github/workflows/check-docs.yml b/.github/workflows/check-docs.yml index a2f26979ec4..50ef425ae33 100644 --- a/.github/workflows/check-docs.yml +++ b/.github/workflows/check-docs.yml @@ -28,6 +28,11 @@ jobs: run: sudo apt-get install -y libsystemd-dev - name: Install librpm-dev run: sudo apt-get install -y librpm-dev + #  when using ubuntu-latest, python 3.10 is not the default version. + - name: Fix Code is not compatible with Python 3.12 + uses: actions/setup-python@v4 + with: + python-version: '3.10' - name: Run check run: | make check