Skip to content

Commit

Permalink
Simplify JET test
Browse files Browse the repository at this point in the history
  • Loading branch information
devmotion committed Dec 9, 2022
1 parent 59875cd commit a4d26a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
10 changes: 4 additions & 6 deletions test/jet.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
if VERSION >= v"1.7"
using JET
insert!(LOAD_PATH, 2, "..")
@testset "static analysis with JET.jl" begin
@test isempty(JET.get_reports(report_package(DynamicHMC, target_modules=(DynamicHMC,))))
end
using JET
insert!(LOAD_PATH, 2, "..")
@testset "static analysis with JET.jl" begin
@test isempty(JET.get_reports(report_package(DynamicHMC, target_modules=(DynamicHMC,))))
end
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ include("sample-correctness_tests.jl")
#### statis analysis
####

if isempty(VERSION.prerelease) # do not test on nightly
# do not test on older Julia versions and nightly
if VERSION >= v"1.7" && isempty(VERSION.prerelease)
include("jet.jl")
end

0 comments on commit a4d26a3

Please sign in to comment.