Skip to content

Commit 1b48458

Browse files
authored
Remove CairoMakie extension in local tests (#362)
* remove `CairoMakie` extension in local tests * format files * remove `CairoMakie` from `[targets]` in Project.toml`
1 parent 270d3f6 commit 1b48458

File tree

5 files changed

+16
-8
lines changed

5 files changed

+16
-8
lines changed

.github/workflows/CI.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
- 'ext/**'
1111
- 'test/runtests.jl'
1212
- 'test/core-test/**'
13-
- 'test/ext-test/cairomakie_ext.jl'
13+
- 'test/ext-test/cairomakie/**'
1414
- 'Project.toml'
1515
pull_request:
1616
branches:
@@ -21,7 +21,7 @@ on:
2121
- 'ext/**'
2222
- 'test/runtests.jl'
2323
- 'test/core-test/**'
24-
- 'test/ext-test/cairomakie_ext.jl'
24+
- 'test/ext-test/cairomakie/**'
2525
- 'Project.toml'
2626
types:
2727
- opened

Project.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,9 +70,8 @@ julia = "1.10"
7070

7171
[extras]
7272
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
73-
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
7473
JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b"
7574
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
7675

7776
[targets]
78-
test = ["Aqua", "CairoMakie", "JET", "Test"]
77+
test = ["Aqua", "JET", "Test"]
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
[deps]
2+
CairoMakie = "13f3f980-e62b-5c42-98c6-ff1f3baf88f0"
3+
QuantumToolbox = "6c2fb7c5-b903-41d2-bc5e-5a7c320b9fab"
4+
5+
[compat]
6+
CairoMakie = "0.12"
File renamed without changes.

test/runtests.jl

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,16 @@ if (GROUP == "All") || (GROUP == "Core")
4646
end
4747
end
4848

49-
if (GROUP == "All") || (GROUP == "CairoMakie_Ext")
50-
using QuantumToolbox
49+
if (GROUP == "CairoMakie_Ext")# || (GROUP == "All")
50+
Pkg.activate("ext-test/cairomakie")
51+
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))
52+
Pkg.instantiate()
5153

52-
(GROUP == "CairoMakie_Ext") && QuantumToolbox.about()
54+
using QuantumToolbox
55+
QuantumToolbox.about()
5356

5457
# CarioMakie is imported in the following script
55-
include(joinpath(testdir, "ext-test", "cairomakie_ext.jl"))
58+
include(joinpath(testdir, "ext-test", "cairomakie", "cairomakie_ext.jl"))
5659
end
5760

5861
if (GROUP == "CUDA_Ext")# || (GROUP == "All")

0 commit comments

Comments
 (0)