ci: Switch to cargo nextest

- This will help avoid deadlocks with wgpu 0.18 (wgpu/#4885), as every
  test is run in a separate process.
- Similarly, WARP seems to be less sensitive to hanging this way.
- Run on 4 threads at once, to overlap CPU-bound and IO-bound work.
This commit is contained in:
TÖRÖK Attila 2023-12-18 22:19:47 +01:00
parent 95ad0f103f
commit 6876fe8226
1 changed files with 7 additions and 2 deletions

View File

@ -85,15 +85,20 @@ jobs:
env:
RUSTDOCFLAGS: -D warnings
- name: Install cargo nextest
uses: taiki-e/install-action@v2
with:
tool: cargo-nextest
- name: Run tests with image tests
if: runner.os != 'macOS'
run: cargo test --all --locked --features imgtests,lzma,jpegxr
run: cargo nextest run --workspace --locked --no-fail-fast -j 4 --features imgtests,lzma,jpegxr
env:
XDG_RUNTIME_DIR: '' # dummy value, just to silence warnings about it missing
- name: Run tests without image tests
if: runner.os == 'macOS'
run: cargo test --all --locked --features lzma,jpegxr
run: cargo nextest run --workspace --locked --no-fail-fast -j 4 --features lzma,jpegxr
env:
XDG_RUNTIME_DIR: '' # dummy value, just to silence warnings about it missing