Skip to content

Commit 5e83e34

Browse files
committed
MAINT: Make clippy its own gh actions job
1 parent 7f7eb24 commit 5e83e34

File tree

2 files changed

+17
-5
lines changed

2 files changed

+17
-5
lines changed

.github/workflows/ci.yml

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,17 +4,15 @@ on:
44
pull_request:
55
branches: [ master ]
66

7-
87
name: Continuous integration
98

10-
119
env:
1210
CARGO_TERM_COLOR: always
1311
HOST: x86_64-unknown-linux-gnu
1412
FEATURES: "test docs"
1513

1614
jobs:
17-
ci:
15+
tests:
1816
runs-on: ubuntu-latest
1917
strategy:
2018
matrix:
@@ -31,8 +29,23 @@ jobs:
3129
profile: minimal
3230
toolchain: ${{ matrix.rust }}
3331
override: true
34-
components: rustfmt, clippy
3532
- name: Install openblas
3633
run: sudo apt-get install libopenblas-dev gfortran
3734
- run: ./scripts/all-tests.sh "$FEATURES" ${{ matrix.rust }}
3835

36+
clippy:
37+
runs-on: ubuntu-latest
38+
strategy:
39+
matrix:
40+
rust:
41+
- beta
42+
steps:
43+
- uses: actions/checkout@v2
44+
- uses: actions-rs/toolchain@v1
45+
with:
46+
profile: minimal
47+
toolchain: ${{ matrix.rust }}
48+
override: true
49+
components: clippy
50+
- run: cargo clippy
51+

scripts/all-tests.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,5 +17,4 @@ cargo test --manifest-path=ndarray-rand/Cargo.toml --features quickcheck --verbo
1717
cargo test --manifest-path=serialization-tests/Cargo.toml --verbose
1818
cargo test --manifest-path=blas-tests/Cargo.toml --verbose
1919
CARGO_TARGET_DIR=target/ cargo test --manifest-path=numeric-tests/Cargo.toml --verbose
20-
([ "$CHANNEL" != "beta" ] || (rustup component add clippy && cargo clippy))
2120
([ "$CHANNEL" != "nightly" ] || cargo bench --no-run --verbose --features "$FEATURES")

0 commit comments

Comments
 (0)