Skip to content

Commit

Permalink
Try to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
gustaphe committed Aug 8, 2024
1 parent 10af78d commit 93e2c2b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ using LaTeXStrings
using Test

# Run tests
if Sys.MACHINE == "x86_64-linux-gnu"
if Sys.islinux()
@testset "visual regression tests" begin include("visualregression_tests.jl") end
end
@testset "macro test" begin include("macros.jl") end
Expand Down
7 changes: 5 additions & 2 deletions test/visualregression_tests.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
using Latexify, VisualRegressionTests, Gtk
using Latexify, VisualRegressionTests
if isinteractive()
using Gtk
end

function latexify_VRT(filename, args...; kwargs...)
testfun(fname) = render(latexify(args...; kwargs...), MIME"image/png"(); name=replace(fname, r".png$"=>""), transparent=false)
@visualtest testfun joinpath("visualreferences", filename)
@visualtest testfun joinpath("visualreferences", filename) $(isinteractive())
end

latexify_VRT("simpleequation.png", :(x^2-2y_a*exp(3)[1,2,3]); cdot=false)
Expand Down

0 comments on commit 93e2c2b

Please sign in to comment.