From 0593bbd0cd945e223c3bca9e20f847024837a58a Mon Sep 17 00:00:00 2001 From: jtmoon79 <815261+jtmoon79@users.noreply.github.com> Date: Wed, 14 Sep 2022 17:12:21 -0700 Subject: [PATCH] rust.yml split tests to two steps Split two different test focuses into two "test" steps within the job. --- .github/workflows/rust.yml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 2756a1a..c57df5f 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -25,13 +25,16 @@ jobs: set -eux cargo build --verbose cargo build --verbose --release - - name: Run Tests + - name: Run All Tests Single-threaded run: | set -eux cargo test -j1 --verbose --all-targets --all-features -- \ --test-threads=1 - cargo test -j2 --verbose -- --test-threads=2 - cargo test -j8 --verbose -- --test-threads=8 + - name: Run Lib Tests Multi-threaded + run: | + set -eux + cargo test -j2 --lib --verbose -- --test-threads=2 + cargo test -j8 --lib --verbose -- --test-threads=8 - name: Build Documentation run: cargo doc --locked --release --frozen --no-deps -v # run code coverage with rust "nightly", upload to codecov.io