Skip to content

Commit

Permalink
add a reproducer header (#124)
Browse files Browse the repository at this point in the history
Co-authored-by: Sukera <[email protected]>
  • Loading branch information
IanButterworth and Seelengrab authored Oct 18, 2024
1 parent 53f7ca9 commit ed05f1e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test_harness.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,17 @@ kwargs = Kwargs.kwargs(; coverage=ENV["COVERAGE"],
test_args=ENV["TEST_ARGS"],
)

kwargs_reprs = map(kv -> string(kv[1], "=", repr(kv[2])), collect(kwargs))
kwargs_repr = join(kwargs_reprs, ", ")

print("""
│ To reproduce this CI run locally run the following from the same repository state on julia version $VERSION:
│ `import Pkg; Pkg.test(;$kwargs_repr)`
""")

if parse(Bool, ENV["ANNOTATE"]) && v"1.8pre" < VERSION < v"1.9.0-beta3"
push!(LOAD_PATH, "@tests-logger-env") # access dependencies
using GitHubActions, Logging
Expand Down

0 comments on commit ed05f1e

Please sign in to comment.