Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add Aqua tests, and fix Project.toml * Fix Project.toml (Logging being a stale dependency) * Update test/aqua.jl Co-authored-by: Jorge Pérez <PerezHz@users.noreply.github.com> * Bump patch version --------- Co-authored-by: Jorge Pérez <PerezHz@users.noreply.github.com>
- Loading branch information
Showing
3 changed files
with
50 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
using Test | ||
using TaylorIntegration | ||
using Aqua | ||
|
||
@testset "Aqua tests (performance)" begin | ||
# This tests that we don't accidentally run into | ||
# https://github.com/JuliaLang/julia/issues/29393 | ||
# Aqua.test_unbound_args(TaylorIntegration) | ||
ua = Aqua.detect_unbound_args_recursively(TaylorIntegration) | ||
@test length(ua) == 0 | ||
|
||
# See: https://github.com/SciML/OrdinaryDiffEq.jl/issues/1750 | ||
# Test that we're not introducing method ambiguities across deps | ||
ambs = Aqua.detect_ambiguities(TaylorIntegration; recursive = true) | ||
pkg_match(pkgname, pkdir::Nothing) = false | ||
pkg_match(pkgname, pkdir::AbstractString) = occursin(pkgname, pkdir) | ||
filter!(x -> pkg_match("TaylorIntegration", pkgdir(last(x).module)), ambs) | ||
for method_ambiguity in ambs | ||
@show method_ambiguity | ||
end | ||
if VERSION < v"1.10.0-DEV" | ||
@test length(ambs) == 0 | ||
end | ||
end | ||
|
||
@testset "Aqua tests (additional)" begin | ||
Aqua.test_all( | ||
TaylorIntegration; | ||
stale_deps=(ignore=[:DiffEqBase, :RecursiveArrayTools, :Requires, :StaticArrays],), | ||
) | ||
end | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
3c68793
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@JuliaRegistrator register
3c68793
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Registration pull request created: JuliaRegistries/General/103760
Tip: Release Notes
Did you know you can add release notes too? Just add markdown formatted text underneath the comment after the text
"Release notes:" and it will be added to the registry PR, and if TagBot is installed it will also be added to the
release that TagBot creates. i.e.
To add them here just re-invoke and the PR will be updated.
Tagging
After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.
This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via: