cargo fix clippy and fmt #9
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: Tests | |
| on: | |
| push: | |
| branches: [master] | |
| pull_request: | |
| jobs: | |
| verify: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Verify (fmt, clippy, tests) | |
| run: | | |
| cargo fmt --all -- --check | |
| cargo clippy --all-targets --no-default-features --features cpu -- -D warnings | |
| cargo test --release --no-default-features --features cpu --all-targets | |
| cargo test --release --no-default-features --features gpu --all-targets --no-run |