Skip to content

Commit

Permalink
ci: use native Linux ARM runner, test Python 3.13
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Jan 27, 2025
1 parent 501816e commit 37f3c81
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 12 deletions.
38 changes: 27 additions & 11 deletions .github/workflows/packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand All @@ -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 }}
Expand Down Expand Up @@ -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 }}
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion ci/scripts/install_python.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ declare -A versions
versions=([3.9]=3.9.13
[3.10]=3.10.11
[3.11]=3.11.8
[3.12]=3.12.2)
[3.12]=3.12.2
[3.13]=3.13.1)

if [ "$#" -ne 2 ]; then
echo "Usage: $0 <platform> <version>"
Expand Down

0 comments on commit 37f3c81

Please sign in to comment.