You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When I test my packages, I use several versions of Julia: LTS (currently 1.6), release (1.9) and nightly (1.10). I only use JET on release and nighty, and for these two I want the latest version of JET (0.8.3).
If I put a recent compat bound on JET in the Project.toml, Julia LTS will complain that it cannot install it, and my CI will fail. I don't think it is currently possible to have compat bounds that depend on the Julia version. So for now, my workaround is the following:
using Pkg
using JET
functionget_pkg_version(name::AbstractString)
for dep invalues(Pkg.dependencies())
if dep.name == name
return dep.version
endendreturnerror("Dependency not available")
end@testset"Code quality (JET.jl)"beginifVERSION>=v"1.9"@assertget_pkg_version("JET") >=v"0.8.3"
JET.test_package(Graphs; target_defined_modules=true)
endend
Is there a more elegant approach? Should this maybe be documented?
The text was updated successfully, but these errors were encountered:
When I test my packages, I use several versions of Julia: LTS (currently 1.6), release (1.9) and nightly (1.10). I only use JET on release and nighty, and for these two I want the latest version of JET (0.8.3).
If I put a recent compat bound on JET in the
Project.toml
, Julia LTS will complain that it cannot install it, and my CI will fail. I don't think it is currently possible to have compat bounds that depend on the Julia version. So for now, my workaround is the following:Is there a more elegant approach? Should this maybe be documented?
The text was updated successfully, but these errors were encountered: