Skip to content

Commit

Permalink
GH-44111: [CI][Python] Enable S3 tests on macOS CI (#44129)
Browse files Browse the repository at this point in the history
### 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 <[email protected]>
Signed-off-by: Antoine Pitrou <[email protected]>
  • Loading branch information
pitrou authored Sep 16, 2024
1 parent 3f0585a commit 3600db8
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/python.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
5 changes: 5 additions & 0 deletions dev/tasks/python-wheels/github.osx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit 3600db8

Please sign in to comment.