chore:add basic streaming tests #1459
Workflow file for this run
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: Run tests with coverage on code | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- '**.rs' | |
- '**.toml' | |
pull_request: | |
branches: | |
- main | |
paths: | |
- '**.rs' | |
- '**.toml' | |
jobs: | |
tarpaulin: | |
runs-on: ubuntu-latest | |
name: Run test coverage using Tarpaulin | |
env: | |
CARGO_TERM_COLOR: always | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install rust | |
run: | | |
rustup set auto-self-update disable | |
rustup toolchain install stable --profile minimal | |
rustup show | |
- uses: Swatinem/rust-cache@v2 | |
with: | |
cache-on-failure: true | |
- name: Install required cargo packages for reporting test coverage | |
run: cargo install cargo-tarpaulin | |
- name: Run Tarpaulin (Reporting to coveralls) | |
run: | | |
cargo tarpaulin --all-features --coveralls ${{ secrets.COVERALLS_KEY }} --skip-clean | |