Skip to content

Commit

Permalink
Merge pull request #9 from PumasAI/mh/precomp-fix
Browse files Browse the repository at this point in the history
Adjust precompile workload to avoid warnings
  • Loading branch information
MichaelHatherly authored Jan 15, 2024
2 parents ae08179 + 864f4a8 commit ce0daac
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/precompile.jl
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
PrecompileTools.@setup_workload begin
notebook = joinpath(@__DIR__, "..", "test", "examples", "cell_types.qmd")
script = joinpath(@__DIR__, "..", "test", "examples", "cell_types.jl")
results = Dict{String,@NamedTuple{error::Bool, data::Vector{UInt8}}}()
PrecompileTools.@compile_workload begin
server = Server()
notebook = joinpath(@__DIR__, "..", "test", "examples", "cell_types.qmd")
run!(server, notebook; output = IOBuffer(), showprogress = false)
run!(server, notebook; output = IOBuffer(), showprogress = false)
close!(server)
raw_text_chunks(notebook)
raw_text_chunks(script)
process_results(results)
end
end

0 comments on commit ce0daac

Please sign in to comment.