From cb8e83cc947fd79d063a8214155e62ae51977491 Mon Sep 17 00:00:00 2001 From: Hiroshiba Date: Wed, 26 Jul 2023 09:26:19 +0900 Subject: [PATCH] =?UTF-8?q?e2e=E7=B3=BB=E3=83=86=E3=82=B9=E3=83=88?= =?UTF-8?q?=E3=81=A0=E3=81=91OS=E5=A4=9A=E3=82=81=E3=81=A7=E3=80=81?= =?UTF-8?q?=E5=8D=98=E4=BD=93=E3=83=86=E3=82=B9=E3=83=88=E3=81=AF=EF=BC=91?= =?UTF-8?q?=E3=81=A4=E3=81=AEOS=E3=81=A7=20(#547)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ryo Yamashita --- .github/workflows/test.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index fb50033bb..8f788c828 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -70,7 +70,19 @@ jobs: - run: cargo clippy -vv --all-features --features onnxruntime/disable-sys-build-script -- -D clippy::all -D warnings --no-deps - run: cargo fmt -- --check - rust-test: + rust-unit-test: + runs-on: windows-latest + steps: + - uses: actions/checkout@v3 + - name: Set up Rust + uses: ./.github/actions/rust-toolchain-from-file + - uses: Swatinem/rust-cache@v2 + with: + key: "cargo-unit-test-cache" + - name: Run cargo unit test + run: RUST_BACKTRACE=full cargo test --lib --bins -vv --features , -- --include-ignored + + rust-integration-test: strategy: fail-fast: false matrix: @@ -102,10 +114,9 @@ jobs: uses: ./.github/actions/rust-toolchain-from-file - uses: Swatinem/rust-cache@v2 with: - # cargoのキャッシュが原因でテストが失敗する場合はバージョン部分をカウントアップすること - key: "v2-cargo-test-cache-${{ matrix.features }}-${{ matrix.os }}" - - name: Run cargo test - run: RUST_BACKTRACE=full cargo test -vv --features ,${{ matrix.features }} -- --include-ignored + key: "cargo-integration-test-cache-${{ matrix.features }}-${{ matrix.os }}" + - name: Run cargo integration test + run: RUST_BACKTRACE=full cargo test --test "*" -vv --features ,${{ matrix.features }} -- --include-ignored c-header: runs-on: ubuntu-latest