From 7e48a5997c2b829944cf98b7282472e7a3334c55 Mon Sep 17 00:00:00 2001
From: David Li
Date: Mon, 27 Jan 2025 00:13:53 -0500
Subject: [PATCH] ci: use native Linux ARM runner, test Python 3.13
---
.github/workflows/packaging.yml | 38 +++++++++++++++++++++++----------
1 file changed, 27 insertions(+), 11 deletions(-)
diff --git a/.github/workflows/packaging.yml b/.github/workflows/packaging.yml
index da9e7389b6..69a7e2432a 100644
--- a/.github/workflows/packaging.yml
+++ b/.github/workflows/packaging.yml
@@ -553,8 +553,8 @@ jobs:
./adbc/ci/scripts/python_conda_test.sh $(pwd)/adbc $(pwd)/adbc/build
python-manylinux:
- name: "Python ${{ matrix.arch }} manylinux${{ matrix.manylinux_version }}"
- runs-on: ubuntu-latest
+ name: "Python ${{ matrix.arch }} manylinux"
+ runs-on: ${{ matrix.runs_on }}
needs:
- source
strategy:
@@ -563,13 +563,13 @@ jobs:
arch: ["amd64", "arm64v8"]
is_pr:
- ${{ startsWith(github.ref, 'refs/pull/') }}
- exclude:
- # Don't run arm64v8 build on PRs since the build is excessively slow
- - arch: arm64v8
- is_pr: true
include:
- - {arch: amd64, platform: linux/amd64}
- - {arch: arm64v8, platform: linux/arm64/v8}
+ - arch: amd64
+ platform: "linux/amd64"
+ runs_on: "ubuntu-latest"
+ - arch: arm64v8
+ platform: "linux/arm64/v8"
+ runs_on: "ubuntu-24.04-arm"
steps:
- uses: actions/download-artifact@v4
with:
@@ -594,9 +594,6 @@ jobs:
echo "schedule: ${{ github.event.schedule }}" >> $GITHUB_STEP_SUMMARY
echo "ref: ${{ github.ref }}" >> $GITHUB_STEP_SUMMARY
- - name: Set up QEMU
- uses: docker/setup-qemu-action@v3
-
- name: Build wheel
env:
ARCH: ${{ matrix.arch }}
@@ -657,6 +654,14 @@ jobs:
pushd adbc
env PYTHON=3.12 docker compose run python-wheel-manylinux-test
+ - name: Test wheel 3.13
+ env:
+ ARCH: ${{ matrix.arch }}
+ PLATFORM: ${{ matrix.platform }}
+ run: |
+ pushd adbc
+ env PYTHON=3.13 docker compose run python-wheel-manylinux-test
+
python-macos:
name: "Python ${{ matrix.arch }} macOS"
runs-on: ${{ matrix.os }}
@@ -738,6 +743,7 @@ jobs:
sudo ci/scripts/install_python.sh macos 3.10
sudo ci/scripts/install_python.sh macos 3.11
sudo ci/scripts/install_python.sh macos 3.12
+ sudo ci/scripts/install_python.sh macos 3.13
popd
- name: Build wheel
@@ -805,6 +811,16 @@ jobs:
./ci/scripts/python_wheel_unix_test.sh $(pwd)
deactivate
+ - name: Test wheel 3.13
+ run: |
+ pushd adbc
+
+ /Library/Frameworks/Python.framework/Versions/3.13/bin/python3.13 -m venv test-env-313
+ source test-env-313/bin/activate
+ export PYTHON_VERSION=3.13
+ ./ci/scripts/python_wheel_unix_test.sh $(pwd)
+ deactivate
+
python-windows:
name: "Python ${{ matrix.python_version }} Windows"
runs-on: windows-latest