Skip to content

Commit 678da69

Browse files
SamuelBrand1omus
andauthored
Pass depwarn in via julia_args (#135)
Co-authored-by: Curtis Vogt <[email protected]>
1 parent 8ce963b commit 678da69

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

action.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ runs:
6060
if: inputs.annotate == 'true'
6161
- run: |
6262
# The Julia command that will be executed
63-
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}} )
63+
julia_cmd=( julia --color=yes --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'include(joinpath(ENV["GITHUB_ACTION_PATH"], "test_harness.jl"))' -- ${{inputs.test_args}} )
6464
6565
# Add the prefix in front of the command if there is one
6666
prefix=( ${{ inputs.prefix }} )
@@ -77,3 +77,4 @@ runs:
7777
CHECK_BOUNDS: ${{ inputs.check_bounds }}
7878
COMPILED_MODULES: ${{ inputs.compiled_modules }}
7979
ALLOW_RERESOLVE: ${{ inputs.allow_reresolve }}
80+
DEPWARN: ${{ inputs.depwarn }}

test_harness.jl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@ kwargs = Kwargs.kwargs(; coverage=ENV["COVERAGE"],
44
force_latest_compatible_version=ENV["FORCE_LATEST_COMPATIBLE_VERSION"],
55
allow_reresolve=ENV["ALLOW_RERESOLVE"],
66
julia_args=[string("--check-bounds=", ENV["CHECK_BOUNDS"]),
7-
string("--compiled-modules=", ENV["COMPILED_MODULES"])],
7+
string("--compiled-modules=", ENV["COMPILED_MODULES"]),
8+
# Needs to be done via `julia_args` to ensure `depwarn: no` is respected:
9+
# https://github.com/JuliaLang/Pkg.jl/pull/1763#discussion_r406819660
10+
string("--depwarn=", ENV["DEPWARN"]),],
811
test_args=ARGS,
912
)
1013

0 commit comments

Comments
 (0)