ci: run no-alloc hot-path tests as separate job

This commit is contained in:
floor-licker
2026-01-30 19:35:03 -05:00
parent c1b763309b
commit 3b0765fbec
+23 -3
View File
@@ -35,8 +35,8 @@ jobs:
- name: Run clippy
run: cargo clippy --lib --bins --tests --benches --all-features -- -D warnings && cargo clippy --example benchmark_with_keepalive --example demo --example final_benchmark --example http2_tuning_benchmark --example performance_benchmark --example quick_demo --example snipe -- -D warnings
- name: Run tests
run: cargo test --all-features
- name: Run tests (excluding no-alloc hot paths)
run: cargo test --all-features -- --skip no_alloc_
- name: Build examples
run: |
@@ -64,4 +64,24 @@ jobs:
run: cargo install cargo-audit
- name: Run security audit
run: cargo audit
run: cargo audit
no_alloc:
name: No-alloc hot paths
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: dtolnay/rust-toolchain@stable
- name: Cache dependencies
uses: actions/cache@v4
with:
path: |
~/.cargo/registry
~/.cargo/git
target
key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
- name: Run no-alloc hot path tests
run: cargo test --all-features --test no_alloc_hot_paths