From cc0dce5daf034cc4f7d7f6bd23cfc3beecced615 Mon Sep 17 00:00:00 2001 From: Manuel Raimann Date: Thu, 12 Feb 2026 10:13:48 +0100 Subject: [PATCH] ci: add doc tests and update examples to match current codebase --- .github/workflows/ci.yml | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a747dad..2150e89 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,6 +51,8 @@ jobs: - uses: Swatinem/rust-cache@v2 - name: Run tests run: cargo test --verbose --all-features --all-targets + - name: Run doc tests + run: cargo test --verbose --all-features --doc examples: name: Examples @@ -62,16 +64,16 @@ jobs: rustup override set stable rustup update stable - uses: Swatinem/rust-cache@v2 - - name: Run sync example (ml_hyperparameter_tuning) - run: cargo run --example ml_hyperparameter_tuning - - name: Run sync example (benchmark_convergence) - run: cargo run --example benchmark_convergence - - name: Run derive example (parameter_api) - run: cargo run --example parameter_api --features derive - - name: Run async example (async_api_optimization) - run: cargo run --example async_api_optimization --features async - - name: Run visualization example (visualization_demo) - run: cargo run --example visualization_demo + - name: Run basic_optimization + run: cargo run --example basic_optimization + - name: Run sampler_comparison + run: cargo run --example sampler_comparison + - name: Run pruning_and_callbacks + run: cargo run --example pruning_and_callbacks + - name: Run parameter_types + run: cargo run --example parameter_types --features derive + - name: Run advanced_features + run: cargo run --example advanced_features --features "async,journal" docs: name: Docs