diff --git a/action.yml b/action.yml index 591bc8d..79d7807 100644 --- a/action.yml +++ b/action.yml @@ -60,7 +60,7 @@ runs: if: inputs.annotate == 'true' - run: | # The Julia command that will be executed - julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'include(joinpath(ENV["GITHUB_ACTION_PATH"], "test_harness.jl"))' -- ${{inputs.test_args}} ) + julia_cmd=( julia --color=yes --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'include(joinpath(ENV["GITHUB_ACTION_PATH"], "test_harness.jl"))' -- ${{inputs.test_args}} ) # Add the prefix in front of the command if there is one prefix=( ${{ inputs.prefix }} ) @@ -77,3 +77,4 @@ runs: CHECK_BOUNDS: ${{ inputs.check_bounds }} COMPILED_MODULES: ${{ inputs.compiled_modules }} ALLOW_RERESOLVE: ${{ inputs.allow_reresolve }} + DEPWARN: ${{ inputs.depwarn }} diff --git a/test_harness.jl b/test_harness.jl index d865638..b76c769 100644 --- a/test_harness.jl +++ b/test_harness.jl @@ -4,7 +4,10 @@ kwargs = Kwargs.kwargs(; coverage=ENV["COVERAGE"], force_latest_compatible_version=ENV["FORCE_LATEST_COMPATIBLE_VERSION"], allow_reresolve=ENV["ALLOW_RERESOLVE"], julia_args=[string("--check-bounds=", ENV["CHECK_BOUNDS"]), - string("--compiled-modules=", ENV["COMPILED_MODULES"])], + string("--compiled-modules=", ENV["COMPILED_MODULES"]), + # Needs to be done via `julia_args` to ensure `depwarn: no` is respected: + # https://github.com/JuliaLang/Pkg.jl/pull/1763#discussion_r406819660 + string("--depwarn=", ENV["DEPWARN"]),], test_args=ARGS, )