Skip to content

Commit

Permalink
bump minimum Julia version (#37)
Browse files Browse the repository at this point in the history
* require Julia v1.8

* require Julia v1.9

* run examples only on Julia 1.10
  • Loading branch information
ranocha authored Mar 25, 2024
1 parent aaccae9 commit d6fdfa6
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
matrix:
version:
- '1'
- '1.7'
- '1.9'
os:
- ubuntu-latest
include:
Expand Down
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,4 @@ SimpleUnPack = "1"
SparseArrays = "1.7"
StaticArrays = "1.5"
SymbolicIndexingInterface = "0.2, 0.3"
julia = "1.7"
julia = "1.9"
26 changes: 14 additions & 12 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -166,18 +166,20 @@ using Aqua: Aqua
# errors out
@test true

cmd = Base.julia_cmd()
examples_dir = abspath(joinpath(pkgdir(PositiveIntegrators), "examples"))
examples = ["01_example_proddest.jl",
"02_example_mpe.jl",
"03_example_mprk22.jl",
"04_example_problemlibrary.jl"]

@testset "Example $ex" for ex in examples
@info "Testing examples" ex
example = joinpath(examples_dir, ex)
@test isfile(example)
@time run(`$cmd --project=$(examples_dir) $(example)`)
if VERSION >= v"1.10"
cmd = Base.julia_cmd()
examples_dir = abspath(joinpath(pkgdir(PositiveIntegrators), "examples"))
examples = ["01_example_proddest.jl",
"02_example_mpe.jl",
"03_example_mprk22.jl",
"04_example_problemlibrary.jl"]

@testset "Example $ex" for ex in examples
@info "Testing examples" ex
example = joinpath(examples_dir, ex)
@test isfile(example)
@time run(`$cmd --project=$(examples_dir) $(example)`)
end
end
end
end

0 comments on commit d6fdfa6

Please sign in to comment.