Skip to content

Commit

Permalink
add automated code quality testing
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Mar 15, 2024
1 parent 3d34ef4 commit dc8e3ad
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
[![Build Status](https://github.com/trixi-framework/TrixiBase.jl/workflows/CI/badge.svg)](https://github.com/trixi-framework/TrixiBase.jl/actions?query=workflow%3ACI)
[![Coveralls](https://coveralls.io/repos/github/trixi-framework/TrixiBase.jl/badge.svg)](https://coveralls.io/github/trixi-framework/TrixiBase.jl)
[![Codecov](https://codecov.io/gh/trixi-framework/TrixiBase.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/trixi-framework/TrixiBase.jl)
[![Aqua QA](https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg)](https://github.com/JuliaTesting/Aqua.jl)
[![License: MIT](https://img.shields.io/badge/License-MIT-success.svg)](https://opensource.org/license/mit/)

[TrixiBase.jl](https://github.com/trixi-framework/TrixiBase.jl)
Expand Down
4 changes: 4 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
Aqua = "0.7, 0.8"
ExplicitImports = "1.0.1"
Test = "1"
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
include("test_util.jl")

@testset verbose=true "TrixiBase.jl Tests" begin
include("test_aqua.jl")
include("trixi_include.jl")
end
9 changes: 9 additions & 0 deletions test/test_aqua.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using Aqua: Aqua
using ExplicitImports: check_no_implicit_imports, check_no_stale_explicit_imports

@testset "Aqua.jl" begin
Aqua.test_all(TrixiBase)
@test isnothing(check_no_implicit_imports(TrixiBase))
@test isnothing(check_no_stale_explicit_imports(TrixiBase))
end

0 comments on commit dc8e3ad

Please sign in to comment.