ci: pilot resource-grouped Linux nextest with doctests

This commit is contained in:
FredApps authored and aiongg committed 2026-11-17 18:58:21 +00:00
1 parent fd7232d7a3
commit a97b7948a9
3 files changed
+146 -6

No files matched your search

+14 -3
View File
@@ -25,7 +25,7 @@ jobs:
with:
os: '["ubuntu-latest","windows-latest","macos-latest"]'
timeout-minutes: 120
# The Windows leg runs its tests with nextest (.config/nextest.toml).
# Linux and Windows use nextest with explicit doctests (.config/nextest.toml).
tools: cargo-nextest@0.9.150
packages: mesa-vulkan-drivers libvulkan1
craft-fonts-ref: b076417b5880bd4154bd22f00695b1d28c6bea83
@@ -49,11 +49,22 @@ jobs:
printf 'CRAFT_PDF_TEST_FONT_DIR=%s\n' "$RUNNER_TEMP/craft-pdf-test-fonts" >> "$GITHUB_ENV"
command: |
python3 scripts/test-workspace-concurrency.py
python3 scripts/test-workspace-tests.py
cargo fmt --check
cargo clippy --workspace --all-targets --locked -- -D warnings
cargo clippy --workspace --all-targets --all-features --locked -- -D warnings
cargo test --workspace --locked
cargo test --workspace --all-features --locked
if [ "$RUNNER_OS" = Linux ]; then
# Keep example compilation as well as test=true example tests selected by nextest.
cargo build --workspace --examples --locked
cargo nextest run --workspace --locked --profile ci-linux
cargo test --workspace --doc --locked
cargo build --workspace --examples --all-features --locked
cargo nextest run --workspace --all-features --locked --profile ci-linux
cargo test --workspace --doc --all-features --locked
else
cargo test --workspace --locked
cargo test --workspace --all-features --locked
fi
windows-command: |
powershell.exe -NoProfile -Command '$ErrorActionPreference = "Stop"; Start-Service Spooler; Add-PrinterDriver -Name "Generic / Text Only"'
cargo fmt --check