File tree 3 files changed +14
-14
lines changed
3 files changed +14
-14
lines changed Original file line number Diff line number Diff line change 1
1
module TestEnv
2
2
3
- @static if VERSION < v " 1.1"
3
+ @static if VERSION < v " 1.1- "
4
4
include (" julia-1.0/TestEnv.jl" )
5
- elseif VERSION < v " 1.2"
5
+ elseif VERSION < v " 1.2- "
6
6
include (" julia-1.1/TestEnv.jl" )
7
- elseif VERSION < v " 1.3"
7
+ elseif VERSION < v " 1.3- "
8
8
include (" julia-1.2/TestEnv.jl" )
9
- elseif VERSION < v " 1.4"
9
+ elseif VERSION < v " 1.4- "
10
10
include (" julia-1.3/TestEnv.jl" )
11
- elseif VERSION < v " 1.7"
11
+ elseif VERSION < v " 1.7- "
12
12
include (" julia-1.4/TestEnv.jl" )
13
- elseif VERSION < v " 1.8"
13
+ elseif VERSION < v " 1.8- "
14
14
include (" julia-1.7/TestEnv.jl" )
15
- elseif VERSION < v " 1.9"
15
+ elseif VERSION < v " 1.9- "
16
16
include (" julia-1.8/TestEnv.jl" )
17
17
else
18
18
include (" julia-1.9/TestEnv.jl" )
Original file line number Diff line number Diff line change 6
6
7
7
orig_project = Base. active_project ()
8
8
9
- if VERSION >= v " 1.4"
9
+ if VERSION >= v " 1.4- "
10
10
direct_deps () = [v. name for (_,v) in Pkg. dependencies () if v. is_direct_dep]
11
11
crc_deps = TestEnv. activate (direct_deps, " ChainRulesCore" )
12
12
@test " ChainRulesCore" ∈ crc_deps
20
20
21
21
# We use endswith here because on MacOS GitHub runners for some reasons the paths are slightly different
22
22
# We also skip on Julia 1.2 and 1.3 on Windows because it is using 8 character shortened paths in one case
23
- if ! ((v " 1.2" <= VERSION < v " 1.4" ) && Sys. iswindows ())
23
+ if ! ((v " 1.2- " <= VERSION < v " 1.4- " ) && Sys. iswindows ())
24
24
@test endswith (Base. active_project (), orig_project)
25
25
end
26
26
end
30
30
mktempdir () do p
31
31
Pkg. activate (p)
32
32
33
- if VERSION >= v " 1.4"
33
+ if VERSION >= v " 1.4- "
34
34
Pkg. add (PackageSpec (name= " MCMCDiagnosticTools" , version= " 0.1.0" ))
35
35
36
36
orig_project = Base. active_project ()
42
42
@test isdefined (@__MODULE__ , :FFTW )
43
43
44
44
@test endswith (Base. active_project (), orig_project)
45
- elseif VERSION >= v " 1.2"
45
+ elseif VERSION >= v " 1.2- "
46
46
Pkg. add (PackageSpec (name= " ConstraintSolver" , version= " 0.6.10" ))
47
47
48
48
orig_project = Base. active_project ()
Original file line number Diff line number Diff line change 30
30
mktempdir () do p
31
31
Pkg. activate (p)
32
32
33
- if VERSION >= v " 1.4"
33
+ if VERSION >= v " 1.4- "
34
34
Pkg. add (PackageSpec (name= " YAXArrays" , version= " 0.1.3" ))
35
35
36
36
orig_project_toml_path = Base. active_project ()
49
49
finally
50
50
Pkg. activate (orig_project_toml_path)
51
51
end
52
- elseif VERSION >= v " 1.2"
52
+ elseif VERSION >= v " 1.2- "
53
53
Pkg. add (PackageSpec (name= " ConstraintSolver" , version= " 0.6.10" ))
54
54
55
55
orig_project_toml_path = Base. active_project ()
71
71
end
72
72
end
73
73
74
- if VERSION >= v " 1.4"
74
+ if VERSION >= v " 1.4- "
75
75
# https://github.com/JuliaTesting/TestEnv.jl/issues/26
76
76
@test isdefined (TestEnv, :isfixed )
77
77
end
You can’t perform that action at this time.
0 commit comments