Skip to content

Commit

Permalink
optimize runtests and extra dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ytdHuang committed Nov 8, 2023
1 parent 93bc513 commit c16d16a
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
10 changes: 1 addition & 9 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,15 +40,7 @@ SteadyStateDiffEq = "1.16.0"
julia = "1.8"

[extras]
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
LaTeXStrings = "b964fa9f-0449-5b57-a5c2-d3ea65f4040f"
Literate = "98b081ad-f1c9-55d3-8b20-4c87d4299306"
Pardiso = "46dd5b70-b6fb-5a00-ae2d-e8fea33afaf2"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
QuantumOptics = "6e0679c1-51ea-5a7c-ac74-d61b76210b0c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["BenchmarkTools", "Documenter", "LaTeXStrings", "Literate", "Pardiso", "Pkg", "Plots", "QuantumOptics", "Test"]
test = ["Test"]
3 changes: 3 additions & 0 deletions test/QuantumOptics/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[deps]
HierarchicalEOM = "a62dbcb7-80f5-4d31-9a88-8b19fd92b128"
QuantumOptics = "6e0679c1-51ea-5a7c-ac74-d61b76210b0c"
2 changes: 2 additions & 0 deletions test/QOExt.jl → test/QuantumOptics/QOExt.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
using QuantumOptics

# System Hamiltonian and initial state
basis = SpinBasis(1//2)
σx = sigmax(basis)
Expand Down
6 changes: 4 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
using Test, Pkg
using QuantumOptics
using HierarchicalEOM
using SparseArrays
using LinearAlgebra
Expand Down Expand Up @@ -38,7 +37,10 @@ if GROUP == "HierarchicalEOM_CUDAExt"
end

if (GROUP == "All" || GROUP == "HierarchicalEOM_QOExt") && HAS_EXTENSIONS
Pkg.activate("QuantumOptics")
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
Pkg.instantiate()
@testset "QuantumOptics Extension" begin
include("QOExt.jl")
include("QuantumOptics/QOExt.jl")
end
end

0 comments on commit c16d16a

Please sign in to comment.