Skip to content

Commit bc85d34

Browse files
committed
Move lints from test.yml and test-python.yml to lint.yml
1 parent 3885faa commit bc85d34

File tree

3 files changed

+10
-22
lines changed

3 files changed

+10
-22
lines changed

.github/workflows/lint.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,9 @@ jobs:
2525
persist-credentials: false
2626

2727
- name: Run Clippy
28-
run: cargo clippy --all-targets
28+
run: |
29+
cargo clippy --all-targets --all-features
30+
cargo clippy --all-targets --all-features --manifest-path python/Cargo.toml
2931
3032
format_check:
3133
runs-on: ubuntu-latest
@@ -37,4 +39,6 @@ jobs:
3739
persist-credentials: false
3840

3941
- name: Run Rustfmt
40-
run: cargo fmt --check -- --config imports_granularity=Module,group_imports=StdExternalCrate
42+
run: |
43+
cargo fmt --all --check -- --config imports_granularity=Module,group_imports=StdExternalCrate
44+
cargo fmt --all --check --manifest-path python/Cargo.toml -- --config imports_granularity=Module,group_imports=StdExternalCrate

.github/workflows/test-python.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77
pull_request:
88

99
jobs:
10-
lint-test:
11-
name: Lint and Test
10+
test:
11+
name: Test
1212
runs-on: ubuntu-latest
1313
defaults:
1414
run:
@@ -18,17 +18,9 @@ jobs:
1818

1919
- name: Install Rust
2020
uses: dtolnay/rust-toolchain@stable
21-
with:
22-
components: rustfmt, clippy
2321

2422
- uses: Swatinem/rust-cache@v2
2523

26-
- name: Cargo fmt
27-
run: cargo fmt --all -- --check
28-
29-
- name: "clippy --all"
30-
run: cargo clippy --all --all-features --tests -- -D warnings
31-
3224
- name: "cargo check"
3325
run: cargo check --all --all-features
3426

.github/workflows/test.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,17 @@ on:
77
pull_request:
88

99
jobs:
10-
lint-test:
11-
name: Lint and Test
10+
test:
11+
name: Test
1212
runs-on: ubuntu-latest
1313
steps:
1414
- uses: actions/checkout@v3
1515

1616
- name: Install Rust
1717
uses: dtolnay/rust-toolchain@stable
18-
with:
19-
components: rustfmt, clippy
2018

2119
- uses: Swatinem/rust-cache@v2
2220

23-
- name: Cargo fmt
24-
run: cargo fmt --all -- --check
25-
26-
- name: "clippy --all"
27-
run: cargo clippy --all --all-features --tests -- -D warnings
28-
2921
- run: cargo install cargo-all-features
3022

3123
- name: Check all combinations of features can build

0 commit comments

Comments
 (0)