Skip to content

Commit 614285e

Browse files
committed
Quality tests on 1.10 only
1 parent 6ca7076 commit 614285e

3 files changed

Lines changed: 21 additions & 11 deletions

File tree

.github/workflows/Documentation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
tags: '*'
88
pull_request:
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
13+
1014
jobs:
1115
build:
1216
permissions:

.github/workflows/Test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
pull_request:
88

9+
concurrency:
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
12+
913
# needed to allow julia-actions/cache to delete old caches that it has created
1014
permissions:
1115
actions: write

test/runtests.jl

Lines changed: 13 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,19 @@ using SparseMatrixColorings
66
using Test
77

88
@testset verbose = true "SparseMatrixColorings" begin
9-
@testset verbose = true "Code quality" begin
10-
@testset "Aqua" begin
11-
Aqua.test_all(SparseMatrixColorings)
12-
end
13-
@testset "JET" begin
14-
JET.test_package(SparseMatrixColorings)
15-
end
16-
@testset "JuliaFormatter" begin
17-
@test JuliaFormatter.format(
18-
SparseMatrixColorings; verbose=false, overwrite=false
19-
)
9+
if VERSION >= v"1.10"
10+
@testset verbose = true "Code quality" begin
11+
@testset "Aqua" begin
12+
Aqua.test_all(SparseMatrixColorings)
13+
end
14+
@testset "JET" begin
15+
JET.test_package(SparseMatrixColorings)
16+
end
17+
@testset "JuliaFormatter" begin
18+
@test JuliaFormatter.format(
19+
SparseMatrixColorings; verbose=false, overwrite=false
20+
)
21+
end
2022
end
2123
end
2224
@testset "Doctests" begin

0 commit comments

Comments
 (0)