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:
parent
95ad0f103f
commit
6876fe8226
|
@ -85,15 +85,20 @@ jobs:
|
||||||
env:
|
env:
|
||||||
RUSTDOCFLAGS: -D warnings
|
RUSTDOCFLAGS: -D warnings
|
||||||
|
|
||||||
|
- name: Install cargo nextest
|
||||||
|
uses: taiki-e/install-action@v2
|
||||||
|
with:
|
||||||
|
tool: cargo-nextest
|
||||||
|
|
||||||
- name: Run tests with image tests
|
- name: Run tests with image tests
|
||||||
if: runner.os != 'macOS'
|
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:
|
env:
|
||||||
XDG_RUNTIME_DIR: '' # dummy value, just to silence warnings about it missing
|
XDG_RUNTIME_DIR: '' # dummy value, just to silence warnings about it missing
|
||||||
|
|
||||||
- name: Run tests without image tests
|
- name: Run tests without image tests
|
||||||
if: runner.os == 'macOS'
|
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:
|
env:
|
||||||
XDG_RUNTIME_DIR: '' # dummy value, just to silence warnings about it missing
|
XDG_RUNTIME_DIR: '' # dummy value, just to silence warnings about it missing
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue