support struct array in pretty display (#579) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Licensed to the Apache Software Foundation (ASF) under one | ||
# or more contributor license agreements. See the NOTICE file | ||
# distributed with this work for additional information | ||
# regarding copyright ownership. The ASF licenses this file | ||
# to you under the Apache License, Version 2.0 (the | ||
# "License"); you may not use this file except in compliance | ||
# with the License. You may obtain a copy of the License at | ||
# | ||
# http://www.apache.org/licenses/LICENSE-2.0 | ||
# | ||
# Unless required by applicable law or agreed to in writing, | ||
# software distributed under the License is distributed on an | ||
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
# KIND, either express or implied. See the License for the | ||
# specific language governing permissions and limitations | ||
# under the License. | ||
name: Integration | ||
on: | ||
push: | ||
pull_request: | ||
jobs: | ||
integration: | ||
name: Integration Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Arrow | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: apache/arrow | ||
submodules: true | ||
fetch-depth: 0 | ||
- name: Checkout Arrow Rust | ||
uses: actions/checkout@v2 | ||
with: | ||
path: rust | ||
fetch-depth: 0 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: 3.8 | ||
- name: Setup Archery | ||
run: pip install -e dev/archery[docker] | ||
- name: Execute Docker Build | ||
run: archery docker run -e ARCHERY_INTEGRATION_WITH_RUST=1 conda-integration | ||
# test FFI against the C-Data interface exposed by pyarrow | ||
pyarrow-integration-test: | ||
name: Test Pyarrow C Data Interface | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
rust: [stable] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Setup Rust toolchain | ||
run: | | ||
rustup toolchain install ${{ matrix.rust }} | ||
rustup default ${{ matrix.rust }} | ||
rustup component add rustfmt clippy | ||
- name: Cache Cargo | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/.cargo | ||
key: cargo-maturin-cache- | ||
- name: Cache Rust dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/target | ||
# this key is not equal because maturin uses different compilation flags. | ||
key: ${{ runner.os }}-${{ matrix.arch }}-target-maturin-cache-${{ matrix.rust }}- | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.7' | ||
- name: Upgrade pip and setuptools | ||
run: pip install --upgrade pip setuptools wheel | ||
- name: Install python dependencies | ||
run: pip install maturin==0.8.2 toml==0.10.1 pytest pytz | ||
- name: Install nightly pyarrow wheel | ||
# this points to a nightly pyarrow build containing neccessary | ||
# API for integration testing (https://github.com/apache/arrow/pull/10529) | ||
# the hardcoded version is wrong and should be removed either | ||
# after https://issues.apache.org/jira/browse/ARROW-13083 | ||
# gets fixes or pyarrow 5.0 gets released | ||
hardcoded version is wrong, bot contains | ||
run: pip install --index-url https://pypi.fury.io/arrow-nightlies/ pyarrow==3.1.0.dev1030 | ||
- name: Run tests | ||
env: | ||
CARGO_HOME: "/home/runner/.cargo" | ||
CARGO_TARGET_DIR: "/home/runner/target" | ||
working-directory: arrow-pyarrow-integration-testing | ||
run: | | ||
maturin develop | ||
pytest -v . |