* 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>
# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions:write
contents:read
jobs:
test:
runs-on:${{ matrix.os }}
strategy:
matrix:
julia-version:['1.0','1','nightly']
julia-version:['1.6','1','nightly']
julia-arch:[x64, x86]
os:[ubuntu-latest, windows-latest, macOS-latest]
exclude:
@@ -31,11 +36,12 @@ jobs:
julia-arch:x86
steps:
- uses:actions/checkout@v2
- uses:actions/checkout@v4
- uses:julia-actions/setup-julia@v1
with:
version:${{ matrix.julia-version }}
arch:${{ matrix.julia-arch }}
- uses:julia-actions/cache@v1
- uses:julia-actions/julia-buildpkg@v1
- uses:julia-actions/julia-runtest@v1
# with:
@@ -45,7 +51,7 @@ jobs:
You can add this workflow to your repository by placing it in a file called `test.yml` in the folder `.github/workflows/`. [More info here](https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions).
Here, setting `annotate: true` causes GitHub "annotations" to appear when reviewing the PR, pointing to failing tests, if any.
This functionality is only enabled on Julia 1.8 (even if `annotate` is set to `true`), since currently it does not work on other Julia versions (see #76).
This functionality is only enabled on Julia 1.8 (even if `annotate` is set to `true`), since currently it does not work on other Julia versions (see [#76](https://github.com/julia-actions/julia-runtest/issues/76)).
By default, `annotate` is set to false, but that may change in future releases of this action.
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'
allow_reresolve:
description: 'Whether to allow re-resolving of package versions in the test environment. Only effective on Julia 1.9+. Options: true | false. Default value:true'
@@ -10,7 +12,27 @@ if parse(Bool, ENV["ANNOTATE"]) && v"1.8pre" < VERSION < v"1.9.0-beta3"
global_logger(GitHubActionsLogger())
include("test_logger.jl")
pop!(LOAD_PATH)
TestLogger.test(;kwargs...)
try
TestLogger.test(;kwargs...)
catche
ifeisaPkg.Types.PkgError
# don't show the stacktrace of the test harness because it's not useful
showerror(stderr,e)
exit(1)
else
rethrow()
end
end
else
Pkg.test(;kwargs...)
try
Pkg.test(;kwargs...)
catche
ifeisaPkg.Types.PkgError
# don't show the stacktrace of the test harness because it's not useful
showerror(stderr,e)
exit(1)
else
rethrow()
end
end
end
Reference in New Issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.