Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use flags to control Aqua.test_all #198

Merged
merged 6 commits into from
Sep 8, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .github/workflows/vanilla-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ on:
jobs:
vanilla-test:
runs-on: ubuntu-latest
env:
JULIA_PKG_SERVER: ""
steps:
- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@v1
Expand Down
24 changes: 24 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
BangBang = "198e06fe-97b7-11e9-32a5-e1d131e6ad66"
CategoricalArrays = "324d7699-5711-5eae-9e2f-1d82baa6b597"
ConstructionBase = "187b0558-2788-49d3-abe0-74a17ed4e7c9"
DataFrames = "a93c6f00-e57d-5684-b7b6-d8193f3e46c0"
Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4"
InitialValues = "22cec73e-a1b8-11e9-2c92-598750a2cf9c"
InteractiveUtils = "b77e0a4c-d291-57a0-90e8-8db25a27a240"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
PerformanceTestTools = "dc46b164-d16f-48ec-a853-60448fc869fe"
Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f"
Setfield = "efcf1570-3423-57d1-acb7-fd33fddbac46"
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
StructArrays = "09ab397b-f2b6-538f-b94a-2f83cf4a842a"
Tables = "bd369af6-aec1-5ad0-b16a-f7cc5008161c"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
TypedTables = "9d95f2ec-7b3d-5a63-8d20-e2491e220bb9"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
Aqua = "0.4.7"
DataFrames = ">= 0.20"
StaticArrays = "0.8, 0.9, 0.10, 0.11, 0.12.1"
4 changes: 2 additions & 2 deletions test/environments/jl10/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ version = "0.5.0"

[[Aqua]]
deps = ["Pkg", "Test"]
git-tree-sha1 = "0ce3be2271a966746ea05caf493edf45162cce1b"
git-tree-sha1 = "ef5f638a83ec0099904ac1fe2cc254286e801a54"
repo-rev = "master"
repo-url = "https://github.com/tkf/Aqua.jl.git"
uuid = "4c88cf16-eb10-579e-8560-4a9242c79595"
version = "0.4.5-DEV"
version = "0.4.7"

[[BangBang]]
deps = ["Compat", "ConstructionBase", "Future", "InitialValues", "LinearAlgebra", "Requires", "Setfield", "Tables", "ZygoteRules"]
Expand Down
1 change: 1 addition & 0 deletions test/environments/jl10/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ TypedTables = "9d95f2ec-7b3d-5a63-8d20-e2491e220bb9"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
Aqua = "0.4.7"
DataFrames = ">= 0.20"
StaticArrays = "0.8, 0.9, 0.10, 0.11, 0.12.1"
4 changes: 2 additions & 2 deletions test/environments/main/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ version = "0.5.0"

[[Aqua]]
deps = ["Pkg", "Test"]
git-tree-sha1 = "0ce3be2271a966746ea05caf493edf45162cce1b"
git-tree-sha1 = "ef5f638a83ec0099904ac1fe2cc254286e801a54"
repo-rev = "master"
repo-url = "https://github.com/tkf/Aqua.jl.git"
uuid = "4c88cf16-eb10-579e-8560-4a9242c79595"
version = "0.4.5-DEV"
version = "0.4.7"

[[BangBang]]
deps = ["Compat", "ConstructionBase", "Future", "InitialValues", "LinearAlgebra", "Requires", "Setfield", "Tables", "ZygoteRules"]
Expand Down
1 change: 1 addition & 0 deletions test/environments/main/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,6 @@ TypedTables = "9d95f2ec-7b3d-5a63-8d20-e2491e220bb9"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
Aqua = "0.4.7"
DataFrames = ">= 0.20"
StaticArrays = "0.8, 0.9, 0.10, 0.11, 0.12.1"
4 changes: 2 additions & 2 deletions test/environments/old/Manifest.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ version = "0.5.0"

[[Aqua]]
deps = ["Pkg", "Test"]
git-tree-sha1 = "0ce3be2271a966746ea05caf493edf45162cce1b"
git-tree-sha1 = "ef5f638a83ec0099904ac1fe2cc254286e801a54"
repo-rev = "master"
repo-url = "https://github.com/tkf/Aqua.jl.git"
uuid = "4c88cf16-eb10-579e-8560-4a9242c79595"
version = "0.4.5-DEV"
version = "0.4.7"

[[BangBang]]
deps = ["Compat", "ConstructionBase", "Future", "InitialValues", "LinearAlgebra", "Requires", "Setfield", "Tables", "ZygoteRules"]
Expand Down
1 change: 1 addition & 0 deletions test/environments/old/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
ZygoteRules = "700de1a5-db45-46bc-99cf-38207098b444"

[compat]
Aqua = "0.4.7"
Compat = "= 2.0"
ConstructionBase = "= 0.1"
InitialValues = "= 0.2.5"
Expand Down
9 changes: 7 additions & 2 deletions test/test_aqua.jl
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,15 @@ using Test
Aqua.test_all(
BangBang;
ambiguities=(exclude=[Base.get, Setfield.set, Setfield.modify],),
project_extras = true,
stale_deps = true,
deps_compat = true,
project_toml_formatting = true,
)

@testset "Stale dependencies" begin
Aqua.test_stale_deps(BangBang)
@testset "Compare test/Project.toml and test/environments/main/Project.toml" begin
@test Text(read(joinpath(@__DIR__, "Project.toml"), String)) ==
Text(read(joinpath(@__DIR__, "environments", "main", "Project.toml"), String))
end

end # module