Cargo Tests #442
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: "Cargo Tests" | |
on: | |
pull_request: | |
types: | |
- opened | |
- edited | |
- synchronize | |
- reopened | |
schedule: | |
- cron: 0 0 * * * | |
env: | |
CARGO_TERM_COLOR: always | |
RUSTFLAGS: "-Dwarnings" | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Cargo Test With Release Build | |
run: cargo test --release | |
- name: Cargo Test Offline | |
run: cargo test --no-default-features --features ort-download-binaries | |
- name: Cargo Clippy | |
run: cargo clippy | |
- name: Cargo FMT | |
run: cargo fmt --all -- --check |