Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 0 additions & 38 deletions .github/workflows/GPU.yml

This file was deleted.

17 changes: 1 addition & 16 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,20 +18,5 @@ concurrency:

jobs:
tests:
name: "Tests"
strategy:
fail-fast: false
matrix:
version:
- "1"
- "lts"
- "pre"
os:
- "ubuntu-latest"
- "macos-latest"
- "windows-latest"
uses: "SciML/.github/.github/workflows/tests.yml@v1"
with:
julia-version: "${{ matrix.version }}"
os: "${{ matrix.os }}"
uses: "SciML/.github/.github/workflows/grouped-tests.yml@v1"
secrets: "inherit"
8 changes: 4 additions & 4 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ ForwardDiff = "0.10.13"
GPUArraysCore = "0.1, 0.2"
GenericSchur = "0.5.3"
LinearAlgebra = "1.10"
Pkg = "1"
PrecompileTools = "1"
Printf = "1.10"
Random = "1"
SafeTestsets = "0.1"
SafeTestsets = "0.1, 1"
SciMLTesting = "1"
SparseArrays = "1.10"
StaticArrays = "1.9.8"
Test = "1"
Expand All @@ -43,11 +43,11 @@ julia = "1.10"
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
DoubleFloats = "497a8b3b-efae-58df-a0af-a86822472b78"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Aqua", "DoubleFloats", "ForwardDiff", "Pkg", "Test", "SafeTestsets", "StaticArrays", "Random"]
test = ["Aqua", "DoubleFloats", "ForwardDiff", "Test", "SafeTestsets", "SciMLTesting", "StaticArrays", "Random"]
6 changes: 6 additions & 0 deletions test/gpu/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
[deps]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
CUDA = "3.12, 4, 5"
SafeTestsets = "0.1, 1"
SciMLTesting = "1"
Test = "1"
6 changes: 0 additions & 6 deletions test/jet/Project.toml

This file was deleted.

14 changes: 0 additions & 14 deletions test/qa.jl

This file was deleted.

18 changes: 18 additions & 0 deletions test/qa/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ExponentialUtilities = "d4d017d3-3776-5f7e-afef-a10c40355c18"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[sources]
ExponentialUtilities = {path = "../.."}

[compat]
Aqua = "0.8"
JET = "0.9, 0.10, 0.11"
SafeTestsets = "0.1, 1"
SciMLTesting = "1"
Test = "1"
julia = "1.10"
19 changes: 15 additions & 4 deletions test/jet/jet.jl → test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,20 @@
using ExponentialUtilities, JET, Test
using ExponentialUtilities, Aqua, JET, Test

@testset "Aqua" begin
Aqua.find_persistent_tasks_deps(ExponentialUtilities)
Aqua.test_ambiguities(ExponentialUtilities, recursive = false)
Aqua.test_deps_compat(
ExponentialUtilities,
ignore = [:libblastrampoline_jll]
)
Aqua.test_piracies(ExponentialUtilities)
Aqua.test_project_extras(ExponentialUtilities)
Aqua.test_stale_deps(ExponentialUtilities)
Aqua.test_unbound_args(ExponentialUtilities)
Aqua.test_undefined_exports(ExponentialUtilities)
end

@testset "JET static analysis" begin
# Test key entry points for type stability and correctness
# Using report_call to check for runtime errors

@testset "expv" begin
rep = JET.report_call(expv, (Float64, Matrix{Float64}, Vector{Float64}))
@test length(JET.get_reports(rep)) == 0
Expand Down
35 changes: 2 additions & 33 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,34 +1,3 @@
using Pkg
using SafeTestsets, Test
const LONGER_TESTS = false
using SciMLTesting

const GROUP = get(ENV, "GROUP", "All")

function activate_gpu_env()
Pkg.activate("gpu")
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
return Pkg.instantiate()
end

function activate_jet_env()
Pkg.activate("jet")
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
return Pkg.instantiate()
end

@time begin
if GROUP == "All" || GROUP == "Core"
@time @safetestset "Quality Assurance" include("qa.jl")
@time @safetestset "Basic Tests" include("basictests.jl")
end

if GROUP == "GPU"
activate_gpu_env()
@time @safetestset "GPU Tests" include("gpu/gputests.jl")
end

if GROUP == "JET"
activate_jet_env()
@time @safetestset "JET Tests" include("jet/jet.jl")
end
end
run_tests()
21 changes: 21 additions & 0 deletions test/test_groups.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Test-group matrix for ExponentialUtilities (consumed by the reusable
# SciML/.github grouped-tests.yml@v1 workflow via
# scripts/compute_affected_sublibraries.jl --root-matrix).
#
# Core runs the functional suite (basictests.jl) on every Julia version and OS.
# QA runs the metadata/static-analysis checks (Aqua + JET) in the isolated
# test/qa environment.
# GPU runs the CUDA tests in the isolated test/gpu environment on a self-hosted
# GPU runner (matching the pre-conversion GPU.yml workflow).

[Core]
versions = ["lts", "1", "pre"]
os = ["ubuntu-latest", "macos-latest", "windows-latest", "macOS-15-intel"]

[QA]
versions = ["lts", "1"]

[GPU]
versions = ["1"]
runner = ["self-hosted", "Linux", "X64", "gpu"]
timeout = 60
Loading