From b1173f5d434071300c48a93520732d9de1c81ddd Mon Sep 17 00:00:00 2001 From: David Hewitt Date: Thu, 10 Oct 2024 09:44:07 +0100 Subject: [PATCH] ci: fix more ubuntu-24.04 failures (#4610) * ci: fix more ubuntu-24.04 failures * use 22.04 to test 3.7 * disable zoneinfo test on free-threading --- .github/workflows/ci.yml | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 42dd29c970f..4be66bac11e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -314,6 +314,15 @@ jobs: python-architecture: "x64", rust-target: "x86_64-apple-darwin", } + # ubuntu-latest (24.04) no longer supports 3.7, so run on 22.04 + - rust: stable + python-version: "3.7" + platform: + { + os: "ubuntu-22.04", + python-architecture: "x64", + rust-target: "x86_64-unknown-linux-gnu", + } # arm64 macOS Python not available on GitHub Actions until 3.10 # so backfill 3.7-3.9 with x64 macOS runners @@ -343,6 +352,9 @@ jobs: } exclude: + # ubuntu-latest (24.04) no longer supports 3.7 + - python-version: "3.7" + platform: { os: "ubuntu-latest" } # arm64 macOS Python not available on GitHub Actions until 3.10 - rust: stable python-version: "3.7" @@ -557,6 +569,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' - uses: Swatinem/rust-cache@v2 with: save-if: ${{ github.event_name != 'merge_group' }} @@ -626,6 +641,9 @@ jobs: target: "x86_64-apple-darwin" steps: - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: '3.12' - uses: Swatinem/rust-cache@v2 with: workspaces: