Skip to content

perf(rust, python): Speed up .is_in and in #1057

perf(rust, python): Speed up .is_in and in

perf(rust, python): Speed up .is_in and in #1057

Workflow file for this run

name: Test Rust
on:
pull_request:
paths:
- crates/**
- examples/**
- Cargo.toml
- .github/workflows/test-rust.yml
push:
branches:
- main
paths:
- crates/**
- examples/**
- Cargo.toml
- .github/workflows/test-rust.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
RUSTFLAGS: -C debuginfo=0 # Do not produce debug symbols to keep memory usage down
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Rust
run: rustup show
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref_name == 'main' }}
- name: Compile tests
run: >
cargo test --all-features --no-run
-p polars-lazy
-p polars-io
-p polars-core
-p polars-arrow
-p polars-time
-p polars-utils
-p polars-row
-p polars-sql
- name: Run tests
if: github.ref_name != 'main'
run: >
cargo test --all-features
-p polars-lazy
-p polars-io
-p polars-core
-p polars-arrow
-p polars-time
-p polars-utils
-p polars-row
-p polars-sql
integration-test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: true
matrix:
os: [ubuntu-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- name: Set up Rust
run: rustup show
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref_name == 'main' }}
- name: Compile integration tests
run: cargo test --all-features -p polars --test it --no-run
- name: Run integration tests
if: github.ref_name != 'main'
run: cargo test --all-features -p polars --test it
check-features:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Rust
run: rustup show
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
save-if: ${{ github.ref_name == 'main' }}
- name: Install cargo hack
uses: taiki-e/install-action@v2
with:
tool: cargo-hack
- name: Run cargo hack
run: cargo hack check -p polars --each-feature --no-dev-deps