From 2c109e82d2a983d848a7e3e35b305a5264fbb4b1 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Mon, 11 Aug 2025 11:49:59 +0200 Subject: [PATCH 1/3] ci: add RUST_BACKTRACE=1 --- .github/workflows/test.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 24ccc864..8b1e8658 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -9,6 +9,7 @@ on: env: CARGO_INCREMENTAL: 0 RUSTFLAGS: "-Dwarnings" + RUST_BACKTRACE: 1 jobs: clippy: From 3dd9d3d17acc8039f7b4fd27391bcdca2a31a7c0 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Mon, 11 Aug 2025 11:52:03 +0200 Subject: [PATCH 2/3] try to add specific failing test --- src/distribution/geometric.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/distribution/geometric.rs b/src/distribution/geometric.rs index dbeb5767..a16bcfb5 100644 --- a/src/distribution/geometric.rs +++ b/src/distribution/geometric.rs @@ -415,6 +415,7 @@ mod tests { let cdf = |arg: u64| move |x: Geometric| x.cdf(arg); test_exact(1.0, 1.0, cdf(1)); test_exact(1.0, 1.0, cdf(2)); + test_exact(0.2, 0.2, cdf(1)); test_absolute(0.5, 0.5, 1e-15, cdf(1)); test_absolute(0.5, 0.75, 1e-15, cdf(2)); } From 446ae3c85bacca179700ee51708143d70e1a8d50 Mon Sep 17 00:00:00 2001 From: FreezyLemon Date: Mon, 11 Aug 2025 11:53:21 +0200 Subject: [PATCH 3/3] ci: temporarily reduce matrix (speed) --- .github/workflows/test.yml | 88 +++++++++++++++++++------------------- 1 file changed, 44 insertions(+), 44 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8b1e8658..058c0100 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,44 +12,44 @@ env: RUST_BACKTRACE: 1 jobs: - clippy: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install Rust stable with clippy - uses: dtolnay/rust-toolchain@stable - with: - components: clippy + # clippy: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Install Rust stable with clippy + # uses: dtolnay/rust-toolchain@stable + # with: + # components: clippy - - name: Run cargo clippy (default features) - run: cargo clippy --all-targets + # - name: Run cargo clippy (default features) + # run: cargo clippy --all-targets - fmt: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install Rust stable with rustfmt - uses: dtolnay/rust-toolchain@stable - with: - components: rustfmt + # fmt: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Install Rust stable with rustfmt + # uses: dtolnay/rust-toolchain@stable + # with: + # components: rustfmt - - name: Run rustfmt --check - run: cargo fmt -- --check + # - name: Run rustfmt --check + # run: cargo fmt -- --check - msrv: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install cargo-hack - uses: taiki-e/install-action@cargo-hack - - uses: Swatinem/rust-cache@v2 - - name: Use predefined lockfile - run: mv -v Cargo.lock.MSRV Cargo.lock - - name: Build (lib only) - run: cargo hack check --rust-version --locked + # msrv: + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Install cargo-hack + # uses: taiki-e/install-action@cargo-hack + # - uses: Swatinem/rust-cache@v2 + # - name: Use predefined lockfile + # run: mv -v Cargo.lock.MSRV Cargo.lock + # - name: Build (lib only) + # run: cargo hack check --rust-version --locked test: - needs: [clippy, fmt, msrv] + # needs: [clippy, fmt, msrv] runs-on: ${{ matrix.os }} strategy: matrix: @@ -66,15 +66,15 @@ jobs: - name: Test default features run: cargo test - features: - needs: [clippy, fmt] - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Install Rust stable - uses: dtolnay/rust-toolchain@stable - - name: Install cargo-hack - uses: taiki-e/install-action@cargo-hack - - uses: Swatinem/rust-cache@v2 - - name: Check all possible feature sets - run: cargo hack check --feature-powerset --no-dev-deps + # features: + # needs: [clippy, fmt] + # runs-on: ubuntu-latest + # steps: + # - uses: actions/checkout@v4 + # - name: Install Rust stable + # uses: dtolnay/rust-toolchain@stable + # - name: Install cargo-hack + # uses: taiki-e/install-action@cargo-hack + # - uses: Swatinem/rust-cache@v2 + # - name: Check all possible feature sets + # run: cargo hack check --feature-powerset --no-dev-deps