Skip to content

Commit 1e8745b

Browse files
authored
Merge pull request #48 from SymbolicML/aqua
Add Aqua.jl to test suite
2 parents 55ccc66 + 84de01c commit 1e8745b

File tree

4 files changed

+13
-4
lines changed

4 files changed

+13
-4
lines changed

.github/workflows/CI.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@ jobs:
5050
uses: julia-actions/julia-buildpkg@v1
5151
- name: "Run tests"
5252
run: |
53-
julia --color=yes --project=. -e 'import Pkg; Pkg.add("Coverage")'
54-
julia --color=yes --inline=yes --depwarn=yes --code-coverage=user --project=. -e 'import Pkg; Pkg.test(coverage=true)'
55-
julia --color=yes --project=. coverage.jl
53+
julia --color=yes -e 'import Pkg; Pkg.add("Coverage")'
54+
julia --color=yes --threads=auto --check-bounds=yes --depwarn=yes --code-coverage=user -e 'import Coverage; import Pkg; Pkg.activate("."); Pkg.test(coverage=true)'
55+
julia --color=yes coverage.jl
5656
shell: bash
5757
- name: Coveralls
5858
uses: coverallsapp/github-action@v2

Project.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ Zygote = "0.6"
3535
julia = "1.6"
3636

3737
[extras]
38+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
3839
ForwardDiff = "f6369f11-7733-5829-9624-2563aa707210"
3940
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
4041
SpecialFunctions = "276daf66-3868-5448-9aa4-cd146d93841b"
@@ -44,4 +45,4 @@ Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
4445
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
4546

4647
[targets]
47-
test = ["Test", "SafeTestsets", "SpecialFunctions", "ForwardDiff", "StaticArrays", "SymbolicUtils", "Zygote"]
48+
test = ["Test", "SafeTestsets", "Aqua", "SpecialFunctions", "ForwardDiff", "StaticArrays", "SymbolicUtils", "Zygote"]

test/test_aqua.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
using DynamicExpressions
2+
using Aqua
3+
4+
Aqua.test_all(DynamicExpressions; project_toml_formatting=false)

test/unittest.jl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
using SafeTestsets
22

3+
VERSION >= v"1.9" && @safetestset "Test Aqua.jl" begin
4+
include("test_aqua.jl")
5+
end
6+
37
@safetestset "Initial error handling test" begin
48
include("test_initial_errors.jl")
59
end

0 commit comments

Comments
 (0)