Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GH-45076: [CI][Packaging][Python] Simplify dev/tasks/python-wheels/github.linux.yml #45077

Merged
merged 3 commits into from
Dec 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 12 additions & 13 deletions dev/tasks/python-wheels/github.linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,16 +19,6 @@

{{ macros.github_header() }}

# Testing free-threaded wheels uses a different Docker setup
{% set test_imports_image = (
'python-free-threaded-wheel-manylinux-test-imports' if python_abi_tag == 'cp313t'
else 'python-wheel-manylinux-test-imports')
%}
{% set test_unittests_image = (
'python-free-threaded-wheel-manylinux-test-unittests' if python_abi_tag == 'cp313t'
else 'python-wheel-manylinux-test-unittests')
%}

permissions:
packages: write

Expand Down Expand Up @@ -60,6 +50,15 @@ jobs:
{{ macros.github_install_archery()|indent }}
{{ macros.github_login_dockerhub()|indent }}

- name: Prepare
run: |
if [ "${PYTHON_ABI_TAG}" = "cp313t" ]; then
test_image_prefix=python-free-threaded
else
test_image_prefix=python
fi
echo "TEST_IMAGE_PREFIX=${test_image_prefix}" >> ${GITHUB_ENV}

- name: Build wheel
shell: bash
env:
Expand All @@ -85,8 +84,8 @@ jobs:
shell: bash
run: |
source arrow/ci/scripts/util_enable_core_dumps.sh
archery docker run {{ test_imports_image }}
archery docker run {{ test_unittests_image }}
archery docker run ${TEST_IMAGE_PREFIX}-wheel-manylinux-test-imports
archery docker run ${TEST_IMAGE_PREFIX}-wheel-manylinux-test-unittests

- name: Test wheel on AlmaLinux 8
shell: bash
Expand Down Expand Up @@ -158,5 +157,5 @@ jobs:
shell: bash
run: |
archery docker push python-wheel-manylinux-{{ manylinux_version }}
archery docker push {{ test_unittests_image }}
archery docker push ${TEST_IMAGE_PREFIX}-wheel-manylinux-test-unittests
{% endif %}
Loading