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
2 changes: 1 addition & 1 deletion .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ updates:
- "/"
- "/docs"
- "/test"
- "/test/nopre"
- "/test/qa"
schedule:
interval: "daily"
groups:
Expand Down
19 changes: 1 addition & 18 deletions .github/workflows/Tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,22 +14,5 @@ concurrency:

jobs:
tests:
name: "Tests"
strategy:
fail-fast: false
matrix:
version:
- "1"
- "lts"
- "pre"
group:
- "core"
- "nopre"
exclude:
- group: "nopre"
version: "pre"
uses: "SciML/.github/.github/workflows/tests.yml@v1"
with:
julia-version: "${{ matrix.version }}"
group: "${{ matrix.group }}"
uses: "SciML/.github/.github/workflows/grouped-tests.yml@v1"
secrets: "inherit"
3 changes: 3 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,11 @@ RandomNumbers = "e6cf234a-135c-5ec9-84dd-332b85af5143"
DiffEqBase = "6.133.1, 7"
DiffEqNoiseProcess = "5.13.0"
Distributions = "0.25.100"
Pkg = "1"
RandomNumbers = "1.5.3"
Statistics = "1"
StochasticDiffEq = "6.65.0, 7"
Test = "1"
julia = "1.10"

[extras]
Expand Down
5 changes: 4 additions & 1 deletion test/nopre/Project.toml → test/qa/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,12 @@ ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

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

[compat]
AllocCheck = "0.2"
DiffEqFinancial = "2"
ExplicitImports = "1.14"
JET = "0.9, 0.10, 0.11"
Test = "1.10"
julia = "1.10"
File renamed without changes.
File renamed without changes.
File renamed without changes.
9 changes: 9 additions & 0 deletions test/qa/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
@testset "Explicit Imports" begin
include("explicit_imports.jl")
end
@testset "JET Tests" begin
include("jet_tests.jl")
end
@testset "AllocCheck - Zero Allocations" begin
include("alloc_tests.jl")
end
36 changes: 11 additions & 25 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,21 +1,11 @@
using Pkg
using DiffEqFinancial, Statistics, StochasticDiffEq
using Test
using DiffEqFinancial, Statistics, StochasticDiffEq

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

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

@testset "Interface Compatibility" begin
include("interface_tests.jl")
end
const GROUP = get(ENV, "GROUP", "All")

@testset "DiffEqFinancial.jl" begin
if GROUP == "all" || GROUP == "core"
if GROUP == "All" || GROUP == "Core"
@testset "DiffEqFinancial.jl" begin
@testset "Core Tests" begin
u0 = [1.0; 0.5]
σ = 0.25
Expand Down Expand Up @@ -221,17 +211,13 @@ end
end
end
end
end

if GROUP == "all" || GROUP == "nopre"
activate_nopre_env()
@testset "Explicit Imports" begin
include("nopre/explicit_imports.jl")
end
@testset "JET Tests" begin
include("nopre/jet_tests.jl")
end
@testset "AllocCheck - Zero Allocations" begin
include("nopre/alloc_tests.jl")
end
if GROUP == "All" || GROUP == "QA"
Pkg.activate(joinpath(@__DIR__, "qa"))
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
Pkg.instantiate()
@testset "Quality Assurance" begin
include(joinpath(@__DIR__, "qa", "qa.jl"))
end
end
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