Skip to content

Commit ea0184e

Browse files
authored
CI: Test various Pyarrow version on Linux (pandas-dev#46059)
* CI: Test various Pyarrow version on Linux * Ignore 3 and use conda * use conda install * fix concurrency group * Don't update misc dependencies * Adjust gbq test * expand on comment
1 parent afc06e7 commit ea0184e

File tree

2 files changed

+10
-2
lines changed

2 files changed

+10
-2
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

+2-1
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,8 @@ def test_seaborn():
176176

177177

178178
def test_pandas_gbq():
179-
179+
# Older versions import from non-public, non-existent pandas funcs
180+
pytest.importorskip("pandas_gbq", minversion="0.10.0")
180181
pandas_gbq = import_module("pandas_gbq") # noqa:F841
181182

182183

0 commit comments

Comments
 (0)