chore: Bump polars to py-1.33.0 (#1528) #126
This file contains hidden or 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
name: Lint Rust | |
on: | |
pull_request: | |
paths: | |
- src/rust/** | |
- .github/workflows/lint-rust.yml | |
push: | |
branches: | |
- main | |
paths: | |
- src/** | |
- .github/workflows/lint-rust.yml | |
workflow_dispatch: | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
permissions: | |
contents: read | |
env: | |
RUSTFLAGS: -C debuginfo=0 | |
jobs: | |
cargo-fmt: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v5 | |
- name: Run cargo fmt | |
working-directory: src/rust | |
run: | | |
rustup component add rustfmt | |
cargo fmt --all --check | |
cargo-clippy: | |
runs-on: ubuntu-22.04 | |
steps: | |
- uses: actions/checkout@v5 | |
- uses: rui314/setup-mold@v1 | |
- name: Cache Rust | |
uses: Swatinem/rust-cache@v2 | |
with: | |
workspaces: "src/rust -> target" | |
- name: Fix cache | |
run: | | |
# make sure savvy is built from source because rust-cache doesn't work well. | |
(find ~/.cargo/registry/ src/rust/target -name 'savvy-*' -print0 | xargs -0 rm -rf) || true | |
- name: Run cargo clippy | |
working-directory: src/rust | |
run: | | |
rustup component add clippy | |
cargo clippy \ | |
--all-targets \ | |
--all-features \ | |
--locked \ | |
-- \ | |
-D warnings \ | |
-D clippy::dbg_macro |