Skip to content

Commit 288372d

Browse files
CI fixes (#4974)
* Update tests for Latexify 0.16.5 Behaviour was changed such that ã becomes \tilde{a}, instead of \textnormal{\~{a}}. * Test Julia 1.6 on x86 macOS instead of ARM See: https://discourse.julialang.org/t/how-to-fix-github-actions-ci-failures-with-julia-1-6-or-1-7-on-macos-latest-and-macos-14/117019 * Bump GR compat and Plots version number * update plotly show methods for PlotlyKaleido v2 * remove Pkg * add it back --------- Co-authored-by: Simon Christ <christ@cell.uni-hannover.de>
1 parent 702c592 commit 288372d

File tree

4 files changed

+31
-19
lines changed

4 files changed

+31
-19
lines changed

.github/workflows/ci.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,15 @@ jobs:
3434
- false
3535
os: [ubuntu-latest, windows-latest, macos-latest]
3636
arch: [x64]
37+
exclude:
38+
# No native binaries for Julia 1.6 on ARM macOS
39+
- os: macos-latest
40+
version: '1.6'
3741
include:
42+
# In its place, test Julia 1.6 on x86 macOS
43+
- os: macos-13
44+
experimental: false
45+
version: '1.6'
3846
- os: ubuntu-latest
3947
experimental: false
4048
prefix: xvfb-run # julia-actions/julia-runtest/blob/master/README.md

Project.toml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "Plots"
22
uuid = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
33
author = ["Tom Breloff (@tbreloff)"]
4-
version = "1.40.7"
4+
version = "1.40.8"
55

66
[deps]
77
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
@@ -41,13 +41,27 @@ UnicodeFun = "1cfade01-22cf-5700-b092-accc4b62d6e1"
4141
UnitfulLatexify = "45397f5d-5981-4c77-b2b3-fc36d6e9b728"
4242
Unzip = "41fe7b60-77ed-43a1-b4f0-825fd5a5650d"
4343

44+
[weakdeps]
45+
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
46+
GeometryBasics = "5c1252a2-5f33-56bf-86c9-59e7332b4326"
47+
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
48+
ImageInTerminal = "d8c32880-2388-543b-8c61-d9f865259254"
49+
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"
50+
51+
[extensions]
52+
FileIOExt = "FileIO"
53+
GeometryBasicsExt = "GeometryBasics"
54+
IJuliaExt = "IJulia"
55+
ImageInTerminalExt = "ImageInTerminal"
56+
UnitfulExt = "Unitful"
57+
4458
[compat]
4559
Aqua = "0.8"
4660
Contour = "0.5 - 0.6"
4761
Downloads = "1"
4862
FFMPEG = "0.3, 0.4"
4963
FixedPointNumbers = "0.6 - 0.8"
50-
GR = "0.69.5 - 0.73"
64+
GR = "0.73"
5165
Gaston = "1"
5266
HDF5 = "0.16 - 0.17"
5367
InspectDR = "0.5"
@@ -63,7 +77,7 @@ PlotThemes = "2, 3"
6377
PlotUtils = "1"
6478
PlotlyBase = "0.7 - 0.8"
6579
PlotlyJS = "0.18"
66-
PlotlyKaleido = "1"
80+
PlotlyKaleido = "1,2"
6781
PrecompileTools = "1"
6882
PyPlot = "2"
6983
PythonPlot = "1"
@@ -82,13 +96,6 @@ UnitfulLatexify = "1"
8296
Unzip = "0.1 - 0.2"
8397
julia = "1.6"
8498

85-
[extensions]
86-
FileIOExt = "FileIO"
87-
GeometryBasicsExt = "GeometryBasics"
88-
IJuliaExt = "IJulia"
89-
ImageInTerminalExt = "ImageInTerminal"
90-
UnitfulExt = "Unitful"
91-
9299
[extras]
93100
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
94101
Colors = "5ae59095-9a9b-59fe-a467-6f913c188581"
@@ -125,10 +132,3 @@ VisualRegressionTests = "34922c18-7c2a-561c-bac1-01e79b2c4c92"
125132

126133
[targets]
127134
test = ["Aqua", "Colors", "Distributions", "FileIO", "FilePathsBase", "FreeType", "Gaston", "GeometryBasics", "Gtk", "ImageMagick", "Images", "LibGit2", "OffsetArrays", "PGFPlotsX", "PlotlyJS", "PlotlyBase", "PyPlot", "PythonPlot", "PlotlyKaleido", "HDF5", "RDatasets", "SentinelArrays", "StableRNGs", "StaticArrays", "StatsPlots", "Test", "TestImages", "UnicodePlots", "Unitful", "VisualRegressionTests"]
128-
129-
[weakdeps]
130-
FileIO = "5789e2e9-d7fb-5bc7-8068-2c6fae9b9549"
131-
GeometryBasics = "5c1252a2-5f33-56bf-86c9-59e7332b4326"
132-
IJulia = "7073ff75-c697-5162-941a-fcdaad2a7d2a"
133-
ImageInTerminal = "d8c32880-2388-543b-8c61-d9f865259254"
134-
Unitful = "1986cc42-f94f-5a68-af5c-568840ba703d"

src/backends/plotlybase.jl

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ for (mime, fmt) in (
2222
"image/svg+xml" => "svg",
2323
"image/eps" => "eps",
2424
)
25-
@eval _show(io::IO, ::MIME{Symbol($mime)}, plt::Plot{PlotlyBackend}) =
25+
@eval function _show(io::IO, ::MIME{Symbol($mime)}, plt::Plot{PlotlyBackend})
26+
if !PlotlyKaleido.is_running()
27+
PlotlyKaleido.restart()
28+
end
2629
PlotlyKaleido.savefig(io, plotlybase_syncplot(plt), format = $fmt)
30+
end
2731
end

test/test_pgfplotsx.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -432,7 +432,7 @@ Plots.with(:pgfplotsx) do
432432
@test Plots.pgfx_sanitize_string("A string, with 2 punctuation chars.") ==
433433
"A string, with 2 punctuation chars."
434434
@test Plots.pgfx_sanitize_string("Interpolação polinomial") ==
435-
raw"Interpola$\textnormal{\c{c}}$$\textnormal{\~{a}}$o polinomial"
435+
raw"Interpola$\textnormal{\c{c}}$$\tilde{a}$o polinomial"
436436
@test Plots.pgfx_sanitize_string("∫∞ ∂x") == raw"$\int$$\infty$ $\partial$x"
437437

438438
# special LaTeX characters

0 commit comments

Comments
 (0)