Skip to content

Commit

Permalink
Run tests on CI with cargo-nextest
Browse files Browse the repository at this point in the history
  • Loading branch information
messense committed Jul 13, 2022
1 parent 94d0715 commit 1b348d9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ jobs:
profile: minimal
toolchain: stable
override: true
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Install aarch64-apple-darwin Rust target
if: matrix.os == 'macos-latest'
run: rustup target add aarch64-apple-darwin
Expand Down Expand Up @@ -77,10 +79,7 @@ jobs:
key: test-crates-${{ runner.os }}-${{ steps.rustup.outputs.rustc_hash }}-${{ hashFiles('test-crates/*/Cargo.lock') }}

- name: cargo test
uses: actions-rs/cargo@v1
with:
command: test
args: --features password-storage
run: cargo nextest run --features password-storage
- uses: actions/setup-python@v4
with:
python-version: "pypy-3.7"
Expand Down Expand Up @@ -196,6 +195,8 @@ jobs:
set -ex
apk add cargo python3-dev libffi-dev py3-pip
pip3 install cffi virtualenv
- name: Install cargo-nextest
uses: taiki-e/install-action@nextest
- name: Cache cargo build
uses: Swatinem/rust-cache@v1
with:
Expand All @@ -208,7 +209,7 @@ jobs:
- name: cargo test
run: |
# unset GITHUB_ACTIONS env var to disable zig related tests
env -u GITHUB_ACTIONS cargo test
env -u GITHUB_ACTIONS cargo nextest run
test-auditwheel:
name: Test Auditwheel
Expand Down

0 comments on commit 1b348d9

Please sign in to comment.