From 8166169a07be49776bfc9a1b5d3e8fa1bd88a001 Mon Sep 17 00:00:00 2001 From: Timo Betcke Date: Wed, 4 Dec 2024 21:23:57 +0000 Subject: [PATCH] Increased stack size to make sure tests can work on CI --- .github/workflows/run-tests.yml | 9 ++++----- examples/test_inverse.rs | 17 ----------------- 2 files changed, 4 insertions(+), 22 deletions(-) delete mode 100644 examples/test_inverse.rs diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index 1ba9a9c..ad14b69 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -32,7 +32,7 @@ jobs: - uses: actions/checkout@v3 with: - submodules: 'true' + submodules: "true" - name: Install Clang run: sudo apt-get install -y libclang-dev @@ -51,9 +51,9 @@ jobs: cargo clippy --examples -- -D warnings - name: Run unit tests (debug) - run: cargo test --features "mpi,strict" + run: RUST_MIN_STACK=8388608 cargo test --features "mpi,strict" - name: Run tests (release) - run: cargo test --examples --release --features "mpi,strict" + run: RUST_MIN_STACK=8388608 cargo test --examples --release --features "mpi,strict" - name: Run examples run: | python3 find_examples.py --features "strict" @@ -81,5 +81,4 @@ jobs: run: cargo install cargo-upgrades - uses: actions/checkout@v3 - name: Check that dependencies are up to date - run: - cargo upgrades + run: cargo upgrades diff --git a/examples/test_inverse.rs b/examples/test_inverse.rs deleted file mode 100644 index 0d01ee5..0000000 --- a/examples/test_inverse.rs +++ /dev/null @@ -1,17 +0,0 @@ -use rlst::prelude::*; - -pub fn main() { - let size = 100; - - let mut mat = rlst_dynamic_array2!(f64, [size, size]); - - for index in 0..size { - mat[[index, index]] = 1.0; - } - - mat.view_mut() - .into_inverse_alloc() - .expect("Inverse could not be computed."); - - println!("Mat[0, 0] {}", mat[[0, 0]]); -}