mirror of
https://github.com/julia-actions/julia-runtest.git
synced 2026-02-20 23:16:55 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
8d8f445e06 |
@@ -1,5 +1,7 @@
|
|||||||
module Kwargs
|
module Kwargs
|
||||||
|
|
||||||
|
import Pkg
|
||||||
|
|
||||||
include(joinpath(@__DIR__, "autodetect-dependabot.jl"))
|
include(joinpath(@__DIR__, "autodetect-dependabot.jl"))
|
||||||
|
|
||||||
function kwargs(; coverage::Bool,
|
function kwargs(; coverage::Bool,
|
||||||
@@ -11,7 +13,7 @@ function kwargs(; coverage::Bool,
|
|||||||
kwargs_dict = Dict{Symbol, Any}()
|
kwargs_dict = Dict{Symbol, Any}()
|
||||||
kwargs_dict[:coverage] = coverage
|
kwargs_dict[:coverage] = coverage
|
||||||
|
|
||||||
if VERSION < v"1.7.0-"
|
if VERSION < v"1.7.0-" || !hasmethod(Pkg.Operations.test, Tuple{Pkg.Types.Context, Vector{Pkg.Types.PackageSpec}}, (:force_latest_compatible_version,))
|
||||||
(force_latest_compatible_version != :auto) && @warn("The `force_latest_compatible_version` option requires at least Julia 1.7", VERSION, force_latest_compatible_version)
|
(force_latest_compatible_version != :auto) && @warn("The `force_latest_compatible_version` option requires at least Julia 1.7", VERSION, force_latest_compatible_version)
|
||||||
return kwargs_dict
|
return kwargs_dict
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user