This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 224
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9411f65
commit 9f9ead3
Showing
9 changed files
with
423 additions
and
2 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
name: Cancel | ||
on: | ||
workflow_run: | ||
workflows: ["test"] | ||
types: | ||
- requested | ||
jobs: | ||
cancel: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: styfle/cancel-workflow-action@0.8.0 | ||
with: | ||
workflow_id: ${{ github.event.workflow.id }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
name: Coverage | ||
|
||
on: [pull_request, push] | ||
|
||
jobs: | ||
coverage: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
submodules: true # needed to test IPC, which are located in a submodule | ||
- name: Install Rust | ||
run: rustup toolchain install stable --component llvm-tools-preview | ||
- name: Install cargo-llvm-cov | ||
uses: taiki-e/install-action@cargo-llvm-cov | ||
- name: Setup parquet files | ||
run: | | ||
apt update && apt install python3-pip python3-venv -y -q | ||
python3 -m venv venv | ||
source venv/bin/activate | ||
pip install pip --upgrade | ||
pip install pyarrow==6 pyorc | ||
python parquet_integration/write_parquet.py | ||
python tests/it/io/orc/write.py | ||
deactivate | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Generate code coverage | ||
run: cargo llvm-cov --features full --lcov --output-path lcov.info | ||
- name: Upload coverage to Codecov | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos | ||
files: lcov.info | ||
fail_ci_if_error: true |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
name: Integration FFI | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
docker: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Setup Rust toolchain | ||
run: | | ||
rustup toolchain install stable | ||
rustup default stable | ||
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 | ||
key: ${{ runner.os }}-amd64-target-maturin-cache | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- name: Install Python dependencies | ||
run: python -m pip install --upgrade pip setuptools wheel | ||
- name: Run tests | ||
run: | | ||
export CARGO_HOME="/home/runner/.cargo" | ||
export CARGO_TARGET_DIR="/home/runner/target" | ||
cd arrow-pyarrow-integration-testing | ||
python -m venv venv | ||
source venv/bin/activate | ||
pip install maturin==0.12.6 toml==0.10.2 pyarrow==6 | ||
maturin develop | ||
python -m unittest discover tests |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Integration IPC / Flight | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
docker: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Arrow | ||
uses: actions/checkout@v2 | ||
with: | ||
repository: apache/arrow | ||
submodules: true | ||
fetch-depth: 0 | ||
# this is temporary: once rust is removed from `apache/arrow`, we are good to go. | ||
- name: Remove Rust from arrow | ||
run: rm -rf rust/ | ||
- name: Checkout Arrow Rust | ||
uses: actions/checkout@v2 | ||
with: | ||
path: rust | ||
fetch-depth: 0 | ||
# Arrow uses cargo build -p arrow-integration-testing | ||
# which is incompatible with this. Let's monkey patch it | ||
- name: Fix compilation | ||
run: cp rust/integration-testing/rust_build.sh ci/scripts/rust_build.sh | ||
# unskip many of the tests | ||
- name: Test more cases | ||
run: git apply rust/integration-testing/unskip.patch | ||
- name: Setup Python | ||
uses: actions/setup-python@v1 | ||
with: | ||
python-version: "3.10" | ||
- 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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: Integration ODBC | ||
|
||
on: [push, pull_request] | ||
|
||
env: | ||
CARGO_TERM_COLOR: always | ||
|
||
jobs: | ||
linux: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
|
||
services: | ||
sqlserver: | ||
image: mcr.microsoft.com/mssql/server:2017-latest-ubuntu | ||
ports: | ||
- 1433:1433 | ||
env: | ||
ACCEPT_EULA: Y | ||
SA_PASSWORD: My@Test@Password1 | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Install ODBC Drivers | ||
run: | | ||
curl https://packages.microsoft.com/keys/microsoft.asc | apt-key add - | ||
curl https://packages.microsoft.com/config/ubuntu/20.04/prod.list > /etc/apt/sources.list.d/mssql-release.list | ||
apt-get update | ||
ACCEPT_EULA=Y apt-get install -y msodbcsql17 | ||
ln -s /opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.*.so.* /opt/microsoft/msodbcsql17/lib64/libmsodbcsql-17.so | ||
shell: sudo bash {0} | ||
- name: Setup Rust toolchain | ||
run: | | ||
rustup toolchain install stable | ||
rustup default stable | ||
rustup component add rustfmt clippy | ||
- uses: Swatinem/rust-cache@v1 | ||
- name: Test | ||
run: cd arrow-odbc-integration-testing && cargo test |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: Integration Parquet | ||
|
||
on: [push, pull_request] | ||
|
||
jobs: | ||
docker: | ||
name: Test | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
submodules: true | ||
- name: Setup Rust toolchain | ||
run: | | ||
rustup toolchain install stable | ||
rustup default stable | ||
rustup component add rustfmt clippy | ||
- name: Cache Cargo | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/.cargo | ||
key: cargo-parquet-cache- | ||
- name: Cache Rust dependencies | ||
uses: actions/cache@v2 | ||
with: | ||
path: /home/runner/target | ||
key: ${{ runner.os }}-amd64-target-parquet-cache | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: "3.10" | ||
- name: Build | ||
run: | | ||
export CARGO_HOME="/home/runner/.cargo" | ||
export CARGO_TARGET_DIR="/home/runner/target" | ||
cd arrow-parquet-integration-testing | ||
cargo build | ||
- name: Run | ||
run: | | ||
export CARGO_HOME="/home/runner/.cargo" | ||
export CARGO_TARGET_DIR="/home/runner/target" | ||
cd arrow-parquet-integration-testing | ||
python -m venv venv | ||
source venv/bin/activate | ||
pip install --upgrade pip | ||
pip install pyarrow==8 pyspark==3 | ||
python main.py | ||
# test against spark | ||
python main_spark.py |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
name: Security audit | ||
on: [push, pull_request] | ||
jobs: | ||
security_audit: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v1 | ||
- uses: actions-rs/audit-check@v1 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} |
Oops, something went wrong.