satisfy clippy #274
This file contains 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: CI | |
on: [push, pull_request] | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [ubuntu-latest, macOS-latest, windows-latest] | |
rust: [stable, 1.54] | |
steps: | |
- name: Install Rust | |
uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: ${{ matrix.rust }} | |
- name: Install Intel MKL | |
if: matrix.os == 'macOS-latest' | |
run: | | |
sudo mkdir -p /opt/intel/mkl/lib/intel64 | |
curl https://s3-ap-northeast-1.amazonaws.com/rust-intel-mkl/macos/2019.3/mkl-dynamic-lp64-seq.tar.zst | zstd -cd | sudo tar -xC /opt/intel/mkl/lib/intel64 | |
- uses: actions/checkout@master | |
- name: Install Tarpaulin | |
if: matrix.os == 'ubuntu-latest' && matrix.rust == 'stable' | |
run: cargo install cargo-tarpaulin | |
- name: Run tests on macOS | |
if: matrix.os == 'macOS-latest' | |
run: | | |
export LD_LIBRARY_PATH="/opt/intel/mkl/lib/intel64" | |
cargo test --verbose --features "intel-mkl-system, serialization" | |
- name: Run tests | |
if: matrix.os == 'ubuntu-latest' || matrix.os == 'windows-latest' | |
run: cargo test --verbose --features "intel-mkl-static, serialization" | |
- name: Generate coverage report | |
if: matrix.os == 'ubuntu-latest' && matrix.rust == 'stable' | |
run: cargo tarpaulin --out Xml --features "intel-mkl-static, serialization" | |
- name: Upload coverage to Codecov | |
if: matrix.os == 'ubuntu-latest' && matrix.rust == 'stable' | |
uses: codecov/codecov-action@v1 | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Rust | |
uses: hecrj/setup-rust-action@v1 | |
with: | |
rust-version: stable | |
- uses: actions/checkout@master | |
- name: Check formatting | |
run: cargo fmt -- --check | |
- name: Clippy | |
run: cargo clippy -- -D warnings -W clippy::pedantic |