From cdee99ca5693dd5bea49ea4152ca1e624a2ab1a9 Mon Sep 17 00:00:00 2001 From: Joel Natividad <1980690+jqnatividad@users.noreply.github.com> Date: Wed, 13 Dec 2023 20:14:54 -0500 Subject: [PATCH] `tests`: add polars pinned nightly test workflow polars nightly only works on a pinned nightly version documented in https://github.com/pola-rs/polars/blob/main/rust-toolchain.toml [skip ci] --- .../workflows/rust-polars-pinned-nightly.yml | 41 +++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/rust-polars-pinned-nightly.yml diff --git a/.github/workflows/rust-polars-pinned-nightly.yml b/.github/workflows/rust-polars-pinned-nightly.yml new file mode 100644 index 000000000..06e43077a --- /dev/null +++ b/.github/workflows/rust-polars-pinned-nightly.yml @@ -0,0 +1,41 @@ +name: Linux Polars Pinned Nightly +# polars nightly is pinned to a specific nightly version +# set at https://github.com/pola-rs/polars/blob/main/rust-toolchain.toml + +on: + schedule: + - cron: "0 */24 * * *" + workflow_dispatch: + +env: + CARGO_TERM_COLOR: always + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5.0.0 + with: + python-version: '3.11' + - name: Install and Run Redis + run: | + sudo apt-get install redis-server + sudo service redis-server start + - name: Installing Rust toolchain + uses: actions-rs/toolchain@v1 + with: + # set to the pinned nightly version known to work with polars + toolchain: nightly-2023-11-15 + profile: minimal + components: rust-src + target: x86_64-unknown-linux-gnu + override: true + default: true + - name: Run tests + env: + # RUSTFLAGS: -C target-feature=+fxsr,+sse,+sse2,+sse3,+ssse3,+sse4.1,+sse4.2,+popcnt,+avx,+fma + RUSTFLAGS: -C target-cpu=native + run: cargo test --verbose --locked --features=apply,fetch,foreach,generate,geocode,luau,python,feature_capable,nightly,to,polars