Skip to content

Commit 0e87d53

Browse files
committed
setup CI pipeline config for CairoMakie extension
1 parent 73b187f commit 0e87d53

File tree

3 files changed

+19
-10
lines changed

3 files changed

+19
-10
lines changed

.github/workflows/CI.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
- 'ext/**'
1111
- 'test/runtests.jl'
1212
- 'test/core-test/**'
13+
- 'test/ext-test/cairomakie_ext.jl'
1314
- 'Project.toml'
1415
pull_request:
1516
branches:
@@ -20,6 +21,7 @@ on:
2021
- 'ext/**'
2122
- 'test/runtests.jl'
2223
- 'test/core-test/**'
24+
- 'test/ext-test/cairomakie_ext.jl'
2325
- 'Project.toml'
2426
types:
2527
- opened
@@ -52,14 +54,21 @@ jobs:
5254
group:
5355
- 'Core'
5456

55-
# include:
57+
include:
5658
# for core tests (intermediate versions)
5759
# - version: '1.x'
5860
# node:
5961
# os: 'ubuntu-latest'
6062
# arch: 'x64'
6163
# group: 'Core'
6264

65+
# for extension tests
66+
- version: '1'
67+
node:
68+
os: 'ubuntu-latest'
69+
arch: 'x64'
70+
group: 'CairoMakie_Ext'
71+
6372
steps:
6473
- uses: actions/checkout@v4
6574
- uses: julia-actions/setup-julia@v2
File renamed without changes.

test/runtests.jl

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,6 @@ core_tests = [
2626
"wigner.jl",
2727
]
2828

29-
ext_tests = [joinpath("cairomakie", "cairomakie_ext.jl")]
30-
31-
if (GROUP == "All") || (GROUP == "Code-Quality")
32-
using QuantumToolbox
33-
using Aqua, JET
34-
35-
include(joinpath(testdir, "core-test", "code_quality.jl"))
36-
end
37-
3829
if (GROUP == "All") || (GROUP == "Core")
3930
using QuantumToolbox
4031
import QuantumToolbox: position, momentum
@@ -52,6 +43,15 @@ if (GROUP == "All") || (GROUP == "Core")
5243
end
5344
end
5445

46+
if (GROUP == "All") || (GROUP == "CairoMakie_Ext")
47+
using QuantumToolbox
48+
49+
(GROUP == "CairoMakie_Ext") && QuantumToolbox.about()
50+
51+
# CarioMakie is imported in the following script
52+
include(joinpath(testdir, "ext-test", "cairomakie_ext.jl"))
53+
end
54+
5555
if (GROUP == "CUDA_Ext")# || (GROUP == "All")
5656
Pkg.activate("ext-test/gpu")
5757
Pkg.develop(PackageSpec(path = dirname(@__DIR__)))

0 commit comments

Comments
 (0)