-
-
Notifications
You must be signed in to change notification settings - Fork 2k
51 lines (42 loc) · 1.08 KB
/
lint-py-polars.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Lint py-polars crate
on:
pull_request:
paths:
- crates/**
- Cargo.toml
- py-polars/src/**
- py-polars/Cargo.toml
- .github/workflows/lint-py-polars.yml
push:
branches:
- main
paths:
- crates/**
- Cargo.toml
- py-polars/src/**
- py-polars/Cargo.toml
- .github/workflows/lint-py-polars.yml
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint-py-polars:
runs-on: ubuntu-latest
defaults:
run:
working-directory: py-polars
steps:
- uses: actions/checkout@v4
- name: Set up Rust
run: rustup component add rustfmt clippy
- name: Cache Rust
uses: Swatinem/rust-cache@v2
with:
workspaces: py-polars
save-if: ${{ github.ref_name == 'main' }}
- name: Run cargo fmt
run: cargo fmt --all -- --check
- name: Run clippy
run: cargo clippy --locked -- -D warnings
- name: Compile without default features
run: cargo check --no-default-features