From 4f55d585292b6574fcac785dea4899c0835aedac Mon Sep 17 00:00:00 2001 From: Matthew Scroggs Date: Tue, 16 Apr 2024 09:32:10 +0100 Subject: [PATCH] upgrade requirement versions and add cargo upgrades workflow (#242) --- .github/workflows/run-tests.yml | 19 +++++++++++++++++++ Cargo.toml | 14 +++++++------- 2 files changed, 26 insertions(+), 7 deletions(-) diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index ef852926..f21fe2a7 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -48,3 +48,22 @@ jobs: python3 find_examples.py chmod +x examples.sh ./examples.sh + + check-dependencies: + name: Check dependencies + runs-on: ubuntu-latest + strategy: + matrix: + rust-version: ["stable"] + steps: + - name: Set up Rust + uses: actions-rust-lang/setup-rust-toolchain@v1 + with: + toolchain: ${{ matrix.rust-version }} + components: rustfmt + - name: Install cargo-upgrades + run: cargo install cargo-upgrades + - uses: actions/checkout@v3 + - name: Check that dependencies are up to date + run: + cargo upgrades diff --git a/Cargo.toml b/Cargo.toml index d9d78940..abaacbe7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -22,8 +22,8 @@ crate-type = ["lib", "cdylib"] [dependencies] approx = "0.5" cauchy = "0.4.*" -itertools = "0.10" -mpi = { version = "0.6.*", optional = true } +itertools = "0.12.*" +mpi = { version = "0.7.*", optional = true } num = "0.4" paste = "1.*" lazy_static = "1.4" @@ -36,7 +36,7 @@ green-kernels = { git = "https://github.com/bempp/green-kernels.git" } thiserror="1.*" [dev-dependencies] -criterion = { version = "0.3", features = ["html_reports"]} +criterion = { version = "0.5.*", features = ["html_reports"]} kifmm = { git = "https://github.com/bempp/kifmm.git" } [[bench]] @@ -50,9 +50,9 @@ cargo-args = ["-Zunstable-options", "-Zrustdoc-scrape-examples"] wildcard_imports = "forbid" [target.aarch64-apple-darwin.dev-dependencies] -blas-src = { version = "0.9", features = ["accelerate"]} -lapack-src = { version = "0.9", features = ["accelerate"]} +blas-src = { version = "0.10", features = ["accelerate"]} +lapack-src = { version = "0.10", features = ["accelerate"]} [target.x86_64-unknown-linux-gnu.dev-dependencies] -blas-src = { version = "0.9", features = ["blis"]} -lapack-src = { version = "0.9", features = ["netlib"]} +blas-src = { version = "0.10", features = ["blis"]} +lapack-src = { version = "0.10", features = ["netlib"]}