Skip to content

Commit 5551e30

Browse files
authored
test: fix Aqua workflow (#59)
1 parent 367b873 commit 5551e30

File tree

2 files changed

+25
-7
lines changed

2 files changed

+25
-7
lines changed

.github/workflows/CI.yml

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -73,16 +73,14 @@ jobs:
7373
- uses: julia-actions/setup-julia@v1
7474
with:
7575
version: "1"
76-
- run: |
76+
- name: "Aqua.test_all(JuliaHub)"
77+
shell: julia --color=yes {0}
78+
run: |
7779
import Pkg
7880
Pkg.activate(temp=true)
79-
Pkg.add(name="Aqua", version="0.6")
81+
Pkg.add(name="Aqua", version="0.8")
8082
Pkg.develop(path=".")
81-
import Aqua, JuliaHub
82-
Aqua.test_all(JuliaHub)
83-
shell: julia --color=yes {0}
84-
name: "Aqua.test_all(JuliaHub)"
85-
continue-on-error: true
83+
include(joinpath(pwd(), "test", "aqua.jl"))
8684
8785
jet:
8886
name: JET

test/aqua.jl

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
import Aqua
2+
import JuliaHub
3+
using Test
4+
5+
@testset "Aqua" begin
6+
Aqua.test_all(
7+
JuliaHub;
8+
# These ambiguities are introduced by InlineStrings
9+
# https://github.com/JuliaStrings/InlineStrings.jl/issues/71
10+
ambiguities=(;
11+
exclude=[
12+
Base.Sort.defalg
13+
],
14+
),
15+
# Aqua detects missing standard library compat entries, but setting these
16+
# is problematic if we want to support 1.6
17+
# https://discourse.julialang.org/t/psa-compat-requirements-in-the-general-registry-are-changing/104958
18+
deps_compat=(; broken=true, check_extras=false),
19+
)
20+
end

0 commit comments

Comments
 (0)