Skip to content

Commit

Permalink
ci: Add a additional check for running unit test in rust as well
Browse files Browse the repository at this point in the history
  • Loading branch information
IshanGrover2004 committed Jul 9, 2024
1 parent 657cf3b commit ca5ffe6
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/format.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,27 @@ jobs:
- name: clippy
run: |
cargo clippy --all-features -- -D warnings
unit_test_rust:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./src/rust
steps:
- uses: actions/checkout@v4
- name: cache
uses: actions/cache@v4
with:
path: |
src/rust/.cargo/registry
src/rust/.cargo/git
src/rust/target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
restore-keys: ${{ runner.os }}-cargo-
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
- name: dependencies
run: sudo apt update && sudo apt install libtesseract-dev libavformat-dev libavdevice-dev libswscale-dev yasm
- name: test
run: cargo test --all-features

0 comments on commit ca5ffe6

Please sign in to comment.