Skip to content

Commit 4a2c06c

Browse files
authored
CI: Test pyarrow nightly instead of intermediate versions (#52211)
* CI: Test pyarrow nightly instead of intermediate versions * Change format * Pin, remove hardcoded channel * Try pip * Fix some tests * Address more tests * Fix test condition * Fix another condidition * Cleanup name * Remove boto3
1 parent 176d256 commit 4a2c06c

17 files changed

+58
-54
lines changed

.github/actions/setup-conda/action.yml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,20 +9,9 @@ inputs:
99
extra-specs:
1010
description: Extra packages to install
1111
required: false
12-
pyarrow-version:
13-
description: If set, overrides the PyArrow version in the Conda environment to the given string.
14-
required: false
1512
runs:
1613
using: composite
1714
steps:
18-
- name: Set Arrow version in ${{ inputs.environment-file }} to ${{ inputs.pyarrow-version }}
19-
run: |
20-
grep -q ' - pyarrow' ${{ inputs.environment-file }}
21-
sed -i"" -e "s/ - pyarrow/ - pyarrow=${{ inputs.pyarrow-version }}/" ${{ inputs.environment-file }}
22-
cat ${{ inputs.environment-file }}
23-
shell: bash
24-
if: ${{ inputs.pyarrow-version }}
25-
2615
- name: Install ${{ inputs.environment-file }}
2716
uses: mamba-org/provision-with-micromamba@v12
2817
with:

.github/workflows/macos-windows.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ jobs:
5252
uses: ./.github/actions/setup-conda
5353
with:
5454
environment-file: ci/deps/${{ matrix.env_file }}
55-
pyarrow-version: ${{ matrix.os == 'macos-latest' && '9' || '' }}
5655

5756
- name: Build Pandas
5857
uses: ./.github/actions/build_pandas

.github/workflows/ubuntu.yml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ jobs:
2828
env_file: [actions-38.yaml, actions-39.yaml, actions-310.yaml, actions-311.yaml]
2929
# Prevent the include jobs from overriding other jobs
3030
pattern: [""]
31-
pyarrow_version: ["8", "9", "10"]
3231
include:
3332
- name: "Downstream Compat"
3433
env_file: actions-38-downstream_compat.yaml
@@ -76,21 +75,11 @@ jobs:
7675
# TODO(cython3): Re-enable once next-beta(after beta 1) comes out
7776
# There are some warnings failing the build with -werror
7877
pandas_ci: "0"
79-
exclude:
80-
- env_file: actions-38.yaml
81-
pyarrow_version: "8"
82-
- env_file: actions-38.yaml
83-
pyarrow_version: "9"
84-
- env_file: actions-39.yaml
85-
pyarrow_version: "8"
86-
- env_file: actions-39.yaml
87-
pyarrow_version: "9"
88-
- env_file: actions-310.yaml
89-
pyarrow_version: "8"
90-
- env_file: actions-310.yaml
91-
pyarrow_version: "9"
78+
- name: "Pyarrow Nightly"
79+
env_file: actions-311-pyarrownightly.yaml
80+
pattern: "not slow and not network and not single_cpu"
9281
fail-fast: false
93-
name: ${{ matrix.name || format('{0} pyarrow={1} {2}', matrix.env_file, matrix.pyarrow_version, matrix.pattern) }}
82+
name: ${{ matrix.name || matrix.env_file }}
9483
env:
9584
ENV_FILE: ci/deps/${{ matrix.env_file }}
9685
PATTERN: ${{ matrix.pattern }}
@@ -108,7 +97,7 @@ jobs:
10897
COVERAGE: ${{ !contains(matrix.env_file, 'pypy') }}
10998
concurrency:
11099
# https://github.community/t/concurrecy-not-work-for-push/183068/7
111-
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-${{ matrix.pattern }}-${{ matrix.pyarrow_version || '' }}-${{ matrix.extra_apt || '' }}-${{ matrix.pandas_data_manager || '' }}
100+
group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-${{ matrix.env_file }}-${{ matrix.pattern }}-${{ matrix.extra_apt || '' }}-${{ matrix.pandas_data_manager || '' }}
112101
cancel-in-progress: true
113102

114103
services:
@@ -167,7 +156,6 @@ jobs:
167156
uses: ./.github/actions/setup-conda
168157
with:
169158
environment-file: ${{ env.ENV_FILE }}
170-
pyarrow-version: ${{ matrix.pyarrow_version }}
171159

172160
- name: Build Pandas
173161
id: build

ci/deps/actions-310.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies:
4141
- psycopg2>=2.8.6
4242
- pymysql>=1.0.2
4343
- pytables>=3.6.1
44-
- pyarrow
44+
- pyarrow>=7.0.0
4545
- pyreadstat>=1.1.2
4646
- python-snappy>=0.6.0
4747
- pyxlsb>=1.0.8
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pandas-dev
2+
channels:
3+
- conda-forge
4+
dependencies:
5+
- python=3.11
6+
7+
# build dependencies
8+
- versioneer[toml]
9+
- cython>=0.29.33
10+
11+
# test dependencies
12+
- pytest>=7.0.0
13+
- pytest-cov
14+
- pytest-xdist>=2.2.0
15+
- hypothesis>=6.34.2
16+
- pytest-asyncio>=0.17.0
17+
18+
# required dependencies
19+
- python-dateutil
20+
- numpy
21+
- pytz
22+
- pip
23+
24+
- pip:
25+
- "tzdata>=2022.1"
26+
- "--extra-index-url https://pypi.fury.io/arrow-nightlies/"
27+
- "--prefer-binary"
28+
- "--pre"
29+
- "pyarrow"

ci/deps/actions-311.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ dependencies:
4141
- psycopg2>=2.8.6
4242
- pymysql>=1.0.2
4343
# - pytables>=3.8.0 # first version that supports 3.11
44-
- pyarrow
44+
- pyarrow>=7.0.0
4545
- pyreadstat>=1.1.2
4646
- python-snappy>=0.6.0
4747
- pyxlsb>=1.0.8

ci/deps/actions-38-downstream_compat.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- openpyxl<3.1.1, >=3.0.7
4040
- odfpy>=1.4.1
4141
- psycopg2>=2.8.6
42-
- pyarrow
42+
- pyarrow>=7.0.0
4343
- pymysql>=1.0.2
4444
- pyreadstat>=1.1.2
4545
- pytables>=3.6.1

ci/deps/actions-38.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- odfpy>=1.4.1
4040
- pandas-gbq>=0.15.0
4141
- psycopg2>=2.8.6
42-
- pyarrow
42+
- pyarrow>=7.0.0
4343
- pymysql>=1.0.2
4444
- pyreadstat>=1.1.2
4545
- pytables>=3.6.1

ci/deps/actions-39.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ dependencies:
4040
- pandas-gbq>=0.15.0
4141
- psycopg2>=2.8.6
4242
- pymysql>=1.0.2
43-
- pyarrow
43+
- pyarrow>=7.0.0
4444
- pyreadstat>=1.1.2
4545
- pytables>=3.6.1
4646
- python-snappy>=0.6.0

ci/deps/circle-38-arm64.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ dependencies:
3939
- odfpy>=1.4.1
4040
- pandas-gbq>=0.15.0
4141
- psycopg2>=2.8.6
42-
- pyarrow
42+
- pyarrow>=7.0.0
4343
- pymysql>=1.0.2
4444
# Not provided on ARM
4545
#- pyreadstat

0 commit comments

Comments
 (0)