mirror of
https://github.com/julia-actions/julia-runtest.git
synced 2026-02-12 02:56:55 +08:00
enable julia arg --compiled-modules during testing (#91)
* enable julia arg `--compiled-modules` during testing * fix typo * update `compiled_modules` docs * update `compiled_modules` docs with link to manual --------- Co-authored-by: Ian Butterworth <i.r.butterworth@gmail.com>
This commit is contained in:
@@ -32,6 +32,9 @@ inputs:
|
|||||||
annotate:
|
annotate:
|
||||||
description: 'Whether or not to attempt to create GitHub annotations to show test failures inline. Only effective on Julia 1.8+.'
|
description: 'Whether or not to attempt to create GitHub annotations to show test failures inline. Only effective on Julia 1.8+.'
|
||||||
default: 'false'
|
default: 'false'
|
||||||
|
compiled_modules:
|
||||||
|
description: 'Whether to run tests with `compiled-modules`. For possible values, refer to https://docs.julialang.org/en/v1/manual/command-line-interface/#command-line-interface'
|
||||||
|
default: 'yes'
|
||||||
|
|
||||||
runs:
|
runs:
|
||||||
using: 'composite'
|
using: 'composite'
|
||||||
@@ -66,3 +69,4 @@ runs:
|
|||||||
COVERAGE: ${{ inputs.coverage }}
|
COVERAGE: ${{ inputs.coverage }}
|
||||||
FORCE_LATEST_COMPATIBLE_VERSION: ${{ inputs.force_latest_compatible_version }}
|
FORCE_LATEST_COMPATIBLE_VERSION: ${{ inputs.force_latest_compatible_version }}
|
||||||
CHECK_BOUNDS: ${{ inputs.check_bounds }}
|
CHECK_BOUNDS: ${{ inputs.check_bounds }}
|
||||||
|
COMPILED_MODULES: ${{ inputs.compiled_modules }}
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ import Pkg
|
|||||||
include("kwargs.jl")
|
include("kwargs.jl")
|
||||||
kwargs = Kwargs.kwargs(; coverage=ENV["COVERAGE"],
|
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"]),
|
||||||
|
string("--compiled-modules=", ENV["COMPILED_MODULES"])])
|
||||||
|
|
||||||
if parse(Bool, ENV["ANNOTATE"]) && v"1.8pre" < VERSION < v"1.9.0-beta3"
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user