mirror of
https://github.com/julia-actions/julia-runtest.git
synced 2026-02-12 11:06:54 +08:00
Allow control of --check-bounds command option (#46)
* allow control of bounds-check command option * tryfix * Update action.yml Co-authored-by: Sascha Mann <git@mail.saschamann.eu> * Update action.yml Co-authored-by: Sascha Mann <git@mail.saschamann.eu> * tryfix * alternative bash if else approach * another approach * use julia_args approach * add julia_args to kwargs func * fix * move julia_args to before return * guard against v1.0 * add warning * Update kwargs.jl Co-authored-by: Sascha Mann <git@mail.saschamann.eu> * handle the default state and improve error message * Update kwargs.jl Co-authored-by: Chris Foster <chris42f@gmail.com> * Update kwargs.jl Co-authored-by: Sascha Mann <git@mail.saschamann.eu> Co-authored-by: Chris Foster <chris42f@gmail.com>
This commit is contained in:
@@ -7,6 +7,9 @@ branding:
|
||||
color: 'gray-dark'
|
||||
|
||||
inputs:
|
||||
check_bounds:
|
||||
description: 'Value determining which bounds checking setting to use. Options: yes | no | auto. Default value: yes.'
|
||||
default: 'yes'
|
||||
coverage:
|
||||
description: 'Value determining whether to test with coverage or not. Options: true | false. Default value: true.'
|
||||
default: 'true'
|
||||
@@ -48,7 +51,7 @@ runs:
|
||||
JULIA_PKG_SERVER: ""
|
||||
- run: |
|
||||
# The Julia command that will be executed
|
||||
julia_cmd=( julia --check-bounds=yes --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}),);Pkg.test(; kwargs...)' )
|
||||
julia_cmd=( julia --color=yes --depwarn=${{ inputs.depwarn }} --inline=${{ inputs.inline }} --project=${{ inputs.project }} -e 'import Pkg;include(joinpath(ENV["GITHUB_ACTION_PATH"], "kwargs.jl"));kwargs = Kwargs.kwargs(;coverage = :(${{ inputs.coverage }}),force_latest_compatible_version = :(${{ inputs.force_latest_compatible_version }}), julia_args = ["--check-bounds=${{ inputs.check_bounds }}"]);Pkg.test(; kwargs...)' )
|
||||
|
||||
# Add the prefix in front of the command if there is one
|
||||
prefix="${{ inputs.prefix }}"
|
||||
|
||||
Reference in New Issue
Block a user