Skip to content

Commit

Permalink
use tarpaulin action to run linux tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mkolopanis committed Nov 19, 2021
1 parent 0558fec commit 6b03317
Showing 1 changed file with 9 additions and 8 deletions.
17 changes: 9 additions & 8 deletions .github/workflows/build_and_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,14 +70,15 @@ jobs:
echo "RUSTFLAGS=-C link-args=-Wl,-rpath,$CONDA_PREFIX/lib" >> $GITHUB_ENV
fi
- name: Build & Test
run: |
if [ ${{runner.os}} == "Linux" ]; then
cargo install cargo-tarpaulin
cargo tarpaulin -o Xml --all-features --tests
else
cargo test -v
fi
- name: Run cargo-tarpaulin (Linux)
if: runner.os == 'Linux'
uses: actions-rs/tarpaulin@v0.1
with:
version: '0.18.5'

- name: Build & Test (Others)
if: runner.os != 'Linux'
run: cargo test -v

- name: Upload to codecov.io
if: success() && runner.os == 'Linux'
Expand Down

0 comments on commit 6b03317

Please sign in to comment.