From d1b3f09b6164bec8653a3aa9d73d32884e7d8db7 Mon Sep 17 00:00:00 2001 From: Jonas Schumacher Date: Thu, 28 Sep 2023 14:05:06 +0200 Subject: [PATCH] Fix artifacts (#18) * Update runtests.jl * Update Project.toml * Try to fix tests by moving Artifacts.toml * Add Unitful (error duet to removed re-export in MPIFiles) * Change SHA hash to test CI on Linux and Mac * Add HDF (removed re-export) * Also add HDF5 to normal package * Adapt HDF5 in tests --- test/Artifacts.toml => Artifacts.toml | 2 +- Project.toml | 5 ++++- src/MPISphericalHarmonics.jl | 1 + test/runtests.jl | 2 ++ 4 files changed, 8 insertions(+), 2 deletions(-) rename test/Artifacts.toml => Artifacts.toml (81%) diff --git a/test/Artifacts.toml b/Artifacts.toml similarity index 81% rename from test/Artifacts.toml rename to Artifacts.toml index 3055287..db670bd 100644 --- a/test/Artifacts.toml +++ b/Artifacts.toml @@ -1,5 +1,5 @@ [testData] -git-tree-sha1 = "0b86feae2df3679403e813226d46395e9d5f5bad" +git-tree-sha1 = "c95593d075d35d1e612fd8cc61e4fe2762a4acf6" [[testData.download]] sha256 = "dd3d78a99d77a5cf8c4575637ee481010d8062e4d90a1358cfda85e6570cc973" diff --git a/Project.toml b/Project.toml index f37b3c8..e725d6b 100644 --- a/Project.toml +++ b/Project.toml @@ -5,6 +5,7 @@ version = "0.0.6" [deps] DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae" +HDF5 = "f67ccb44-e63f-5c2f-98bd-6dc0ccc4ba2f" LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e" MPIFiles = "371237a9-e6c1-5201-9adb-3d8cfa78fa9f" MPIMagneticFields = "f6dda52a-86e9-4b50-afb7-f39836a99446" @@ -14,6 +15,7 @@ Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" [compat] DocStringExtensions = "0.8, 0.9" +HDF5 = "0.14, 0.15, 0.16" MPIFiles = "0.12, 0.13, 0.14" MPIMagneticFields = "0.0.4, 0.0.5, 0.0.6" NLsolve = "4" @@ -26,6 +28,7 @@ Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" Artifacts = "56f22d72-fd6d-98f1-02f0-08ddc0907c33" Scratch = "6c6a2e73-6563-6170-7368-637461726353" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" +Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d" [targets] -test = ["Aqua", "Artifacts", "Scratch", "Test"] +test = ["Aqua", "Artifacts", "Scratch", "Test", "Unitful"] diff --git a/src/MPISphericalHarmonics.jl b/src/MPISphericalHarmonics.jl index 8d4b0a1..3ff171d 100644 --- a/src/MPISphericalHarmonics.jl +++ b/src/MPISphericalHarmonics.jl @@ -8,6 +8,7 @@ using MPIMagneticFields using SphericalHarmonicExpansions using MPIFiles using NLsolve # for Newton solver +using HDF5 import Base.length diff --git a/test/runtests.jl b/test/runtests.jl index b1e432a..b52e55e 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -6,6 +6,8 @@ using Test using Aqua using Artifacts using Scratch +using Unitful +using HDF5 const datadir = artifact"testData" @info "The test data is located at $datadir."