Add missing version check to test_harness (#81)

#79 introduced a version requirement for annotations for installing the dependencies but not for the code that adds the annotations, resulting in a dependency error for certain versions.

Fixes #80
This commit is contained in:
Sascha Mann
2023-04-07 14:51:09 +02:00
committed by GitHub
parent 1aec431e02
commit 79a7e10088

View File

@@ -4,7 +4,7 @@ kwargs = Kwargs.kwargs(; coverage=ENV["COVERAGE"],
force_latest_compatible_version=ENV["FORCE_LATEST_COMPATIBLE_VERSION"], force_latest_compatible_version=ENV["FORCE_LATEST_COMPATIBLE_VERSION"],
julia_args=[string("--check-bounds=", ENV["CHECK_BOUNDS"])]) julia_args=[string("--check-bounds=", ENV["CHECK_BOUNDS"])])
if parse(Bool, ENV["ANNOTATE"]) && VERSION > v"1.8pre" if parse(Bool, ENV["ANNOTATE"]) && v"1.8pre" < VERSION < v"1.9.0-beta3"
push!(LOAD_PATH, "@tests-logger-env") # access dependencies push!(LOAD_PATH, "@tests-logger-env") # access dependencies
using GitHubActions, Logging using GitHubActions, Logging
global_logger(GitHubActionsLogger()) global_logger(GitHubActionsLogger())