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
15 changes: 1 addition & 14 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,20 +13,7 @@ concurrency:
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
tests:
name: "Tests"
strategy:
fail-fast: false
matrix:
version:
- "1"
os:
- ubuntu-latest
arch:
- x64
uses: "SciML/.github/.github/workflows/tests.yml@v1"
uses: "SciML/.github/.github/workflows/grouped-tests.yml@v1"
with:
julia-version: "${{ matrix.version }}"
os: "${{ matrix.os }}"
julia-arch: "${{ matrix.arch }}"
coverage: false
secrets: "inherit"
6 changes: 6 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
[deps]
AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a"
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Manifolds = "1cead3c2-87b3-11e9-0ccd-23c62b72b94e"
Manopt = "0fc0a36d-df90-57f3-8f93-d78a9fc72bb5"
Expand All @@ -10,18 +12,22 @@ OptimizationManopt = "e57b7fff-7ee7-4550-b4f0-90e9476e9fb6"
PDMats = "90014a1f-27ba-587c-ab20-58faa44d9150"
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
Symbolics = "0c5d862f-8b57-4792-8d23-62f2024744c7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
[compat]
AllocCheck = "0.2.4"
Aqua = "0.8"
ForwardDiff = "1.3.3"
JET = "0.9,0.10,0.11"
Manifolds = "0.11.26"
Manopt = "0.5.38"
Optimization = "5.6.1"
OptimizationBase = "5.1.3"
OptimizationManopt = "1.3.2"
PDMats = "0.11.37"
SafeTestsets = "0.1.0"
SciMLTesting = "1"
Symbolics = "7.25.0"
Zygote = "0.7.10"
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"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
SciMLTesting = "09d9d899-5365-40a9-917a-5f67fddea283"
SymbolicAnalysis = "4297ee4d-0239-47d8-ba5d-195ecdf594fe"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

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

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

@testset "Aqua" begin
Aqua.test_all(SymbolicAnalysis)
end

@testset "JET" begin
JET.test_package(SymbolicAnalysis; target_defined_modules = true)
end
35 changes: 2 additions & 33 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,33 +1,2 @@
using SymbolicAnalysis:
propagate_curvature,
propagate_sign,
propagate_gcurvature,
getcurvature,
getsign,
getgcurvature

using SafeTestsets, Test

@testset "DCP" begin
include("test.jl")
end

@testset "DGCP - SPD Manifold" begin
include("dgp.jl")
end

@testset "DGCP - Lorentz Manifold" begin
include("lorentz.jl")
end

@testset "Interface Compatibility" begin
include("interface_tests.jl")
end

# AllocCheck tests - run separately to avoid precompilation overhead
# These tests verify that key operations have minimal allocations
if get(ENV, "SYMBOLICANALYSIS_TEST_ALLOC", "true") == "true"
@testset "Allocation Tests" begin
include("alloc_tests.jl")
end
end
using SciMLTesting
run_tests()
1 change: 1 addition & 0 deletions test/test.jl
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
using SymbolicAnalysis
using SymbolicAnalysis: propagate_curvature, propagate_sign, getcurvature, getsign
using Symbolics, SymbolicAnalysis.LogExpFunctions
using Symbolics: unwrap
using LinearAlgebra, Test
Expand Down
5 changes: 5 additions & 0 deletions test/test_groups.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[Core]
versions = ["lts", "1", "pre"]

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