Skip to content

Commit 4020088

Browse files
authored
CI: Test various Pyarrow version on Linux (#46059) (#46097)
1 parent 226f1c2 commit 4020088

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

.github/workflows/posix.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ jobs:
2626
matrix:
2727
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml]
2828
pattern: ["not single_cpu", "single_cpu"]
29+
# Don't test pyarrow v2/3: Causes timeouts in read_csv engine
30+
# even if tests are skipped/xfailed
31+
pyarrow_version: ["5", "6", "7"]
2932
include:
3033
- env_file: actions-38-downstream_compat.yaml
3134
pattern: "not slow and not network and not single_cpu"
@@ -65,7 +68,7 @@ jobs:
6568
COVERAGE: ${{ !contains(matrix.env_file, 'pypy') }}
6669
concurrency:
6770
# https://github.community/t/concurrecy-not-work-for-push/183068/7
68-
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-${{ matrix.pattern }}-${{ matrix.extra_apt || '' }}
71+
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-${{ matrix.pattern }}-${{ matrix.pyarrow_version || '' }}-${{ matrix.extra_apt || '' }}
6972
cancel-in-progress: true
7073

7174
services:
@@ -133,6 +136,10 @@ jobs:
133136
use-only-tar-bz2: true
134137
if: ${{ env.IS_PYPY == 'false' }} # No pypy3.8 support
135138

139+
- name: Upgrade Arrow version
140+
run: conda install -n pandas-dev -c conda-forge --no-update-deps pyarrow=${{ matrix.pyarrow_version }}
141+
if: ${{ matrix.pyarrow_version }}
142+
136143
- name: Setup PyPy
137144
uses: actions/setup-python@v2
138145
with:

pandas/tests/test_downstream.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,9 @@ def test_seaborn():
169169
seaborn.stripplot(x="day", y="total_bill", data=tips)
170170

171171

172-
def test_pandas_gbq(df):
173-
172+
def test_pandas_gbq():
173+
# Older versions import from non-public, non-existent pandas funcs
174+
pytest.importorskip("pandas_gbq", minversion="0.10.0")
174175
pandas_gbq = import_module("pandas_gbq") # noqa:F841
175176

176177

0 commit comments

Comments
 (0)