Skip to content

Commit

Permalink
Quality tests on 1.10 only
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalle committed May 17, 2024
1 parent 6ca7076 commit 614285e
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ on:
tags: '*'
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

jobs:
build:
permissions:
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/Test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
pull_request:

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}

# needed to allow julia-actions/cache to delete old caches that it has created
permissions:
actions: write
Expand Down
24 changes: 13 additions & 11 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@ using SparseMatrixColorings
using Test

@testset verbose = true "SparseMatrixColorings" begin
@testset verbose = true "Code quality" begin
@testset "Aqua" begin
Aqua.test_all(SparseMatrixColorings)
end
@testset "JET" begin
JET.test_package(SparseMatrixColorings)
end
@testset "JuliaFormatter" begin
@test JuliaFormatter.format(
SparseMatrixColorings; verbose=false, overwrite=false
)
if VERSION >= v"1.10"
@testset verbose = true "Code quality" begin
@testset "Aqua" begin
Aqua.test_all(SparseMatrixColorings)
end
@testset "JET" begin
JET.test_package(SparseMatrixColorings)
end
@testset "JuliaFormatter" begin
@test JuliaFormatter.format(
SparseMatrixColorings; verbose=false, overwrite=false
)
end
end
end
@testset "Doctests" begin
Expand Down

0 comments on commit 614285e

Please sign in to comment.