From 3600db8c74f2d83850ad510aa7efbe10fddd9600 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 16 Sep 2024 14:06:50 +0200 Subject: [PATCH] GH-44111: [CI][Python] Enable S3 tests on macOS CI (#44129) ### Rationale for this change S3 support is enabled when building PyArrow for macOS (both on PR builds and in Crossbow wheel builds), but minio wan't installed before testing, therefore S3 support in PyArrow was not tested at all. ### What changes are included in this PR? Ensure Minio is installed before running PyArrow tests on macOS builds. ### Are these changes tested? Yes, by construction. ### Are there any user-facing changes? No. * GitHub Issue: #44111 Authored-by: Antoine Pitrou Signed-off-by: Antoine Pitrou --- .github/workflows/python.yml | 4 ++++ dev/tasks/python-wheels/github.osx.yml | 5 +++++ 2 files changed, 9 insertions(+) diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 45efd305aa8f6..d5de099464677 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -188,6 +188,10 @@ jobs: python -m pip install \ -r python/requirements-build.txt \ -r python/requirements-test.txt + - name: Install MinIO + run: | + $(brew --prefix bash)/bin/bash \ + ci/scripts/install_minio.sh latest /usr/local - name: Setup ccache shell: bash run: ci/scripts/ccache_setup.sh diff --git a/dev/tasks/python-wheels/github.osx.yml b/dev/tasks/python-wheels/github.osx.yml index 5d85e7905726e..4f54719feef66 100644 --- a/dev/tasks/python-wheels/github.osx.yml +++ b/dev/tasks/python-wheels/github.osx.yml @@ -128,6 +128,11 @@ jobs: PIPX_BASE_PYTHON: {{ '${{ steps.gcs-python-install.outputs.python-path }}' }} run: arrow/ci/scripts/install_gcs_testbench.sh default + - name: Install MinIO + run: | + $(brew --prefix bash)/bin/bash \ + arrow/ci/scripts/install_minio.sh latest /usr/local + - name: Test Wheel env: PYTEST_ADDOPTS: "-k 'not test_cancellation'"