Skip to content

Commit

Permalink
enable julia arg --compiled-modules during testing (#91)
Browse files Browse the repository at this point in the history
* 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 <[email protected]>
  • Loading branch information
haberdashPI and IanButterworth authored Jan 8, 2024
1 parent 303a196 commit 2b24f9b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ inputs:
annotate:
description: 'Whether or not to attempt to create GitHub annotations to show test failures inline. Only effective on Julia 1.8+.'
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:
using: 'composite'
Expand Down Expand Up @@ -66,3 +69,4 @@ runs:
COVERAGE: ${{ inputs.coverage }}
FORCE_LATEST_COMPATIBLE_VERSION: ${{ inputs.force_latest_compatible_version }}
CHECK_BOUNDS: ${{ inputs.check_bounds }}
COMPILED_MODULES: ${{ inputs.compiled_modules }}
3 changes: 2 additions & 1 deletion test_harness.jl
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ import Pkg
include("kwargs.jl")
kwargs = Kwargs.kwargs(; coverage=ENV["COVERAGE"],
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"
push!(LOAD_PATH, "@tests-logger-env") # access dependencies
Expand Down

0 comments on commit 2b24f9b

Please sign in to comment.