Skip to content

Commit

Permalink
Aqua + typos CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStrouwen committed Nov 29, 2023
1 parent 9aaf9b3 commit 2e55f9e
Show file tree
Hide file tree
Showing 7 changed files with 51 additions and 5 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/SpellCheck.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
name: Spell Check

on: [pull_request]

jobs:
typos-check:
name: Spell Check with Typos
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
- name: Check spelling
uses: crate-ci/[email protected]
4 changes: 4 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
[default.extend-words]
fom = "fom"
Pris = "Pris"
PARM = "PARM"
18 changes: 17 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -58,39 +58,55 @@ LinearSolveRecursiveArrayToolsExt = "RecursiveArrayTools"
LinearSolveFastAlmostBandedMatricesExt = ["FastAlmostBandedMatrices"]

[compat]
Aqua = "0.8"
ArrayInterface = "7.4.11"
BandedMatrices = "1"
BlockDiagonals = "0.1"
ConcreteStructs = "0.2"
CUDA = "5"
DocStringExtensions = "0.9"
EnumX = "1"
Enzyme = "0.11"
EnzymeCore = "0.6"
FastAlmostBandedMatrices = "0.1"
FastLapackInterface = "2"
FiniteDiff = "2"
ForwardDiff = "0.10"
GPUArraysCore = "0.1"
HYPRE = "1.4.0"
InteractiveUtils = "1.6"
IterativeSolvers = "0.9.3"
Libdl = "1.6"
LinearAlgebra = "1.9"
JET = "0.8"
KLU = "0.3.0, 0.4"
KernelAbstractions = "0.9"
Krylov = "0.9"
KrylovKit = "0.6"
Metal = "0.5"
MPI = "0.20"
MultiFloats = "1"
Pardiso = "0.5"
Pkg = "1"
PrecompileTools = "1"
Preferences = "1"
Random = "1"
RecursiveArrayTools = "2"
RecursiveFactorization = "0.2.8"
Reexport = "1"
Requires = "1"
SafeTestsets = "0.1"
SciMLBase = "2"
SciMLOperators = "0.3"
Setfield = "1"
SparseArrays = "1.9"
Sparspak = "0.3.6"
Test = "1"
UnPack = "1"
julia = "1.9"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
BandedMatrices = "aae01518-5342-5314-be14-df237901396f"
BlockDiagonals = "0a1fb500-61f7-11e9-3c65-f5ef3456f9f0"
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
Expand All @@ -113,4 +129,4 @@ SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test", "IterativeSolvers", "InteractiveUtils", "JET", "KrylovKit", "Pkg", "Random", "SafeTestsets", "MultiFloats", "ForwardDiff", "HYPRE", "MPI", "BlockDiagonals", "Enzyme", "FiniteDiff", "BandedMatrices", "FastAlmostBandedMatrices"]
test = ["Aqua", "Test", "IterativeSolvers", "InteractiveUtils", "JET", "KrylovKit", "Pkg", "Random", "SafeTestsets", "MultiFloats", "ForwardDiff", "HYPRE", "MPI", "BlockDiagonals", "Enzyme", "FiniteDiff", "BandedMatrices", "FastAlmostBandedMatrices"]
2 changes: 1 addition & 1 deletion docs/src/solvers/solvers.md
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ NormalBunchKaufmanFactorization

### LinearSolve.jl

LinearSolve.jl contains some linear solvers built in for specailized cases.
LinearSolve.jl contains some linear solvers built in for specialized cases.

```@docs
SimpleLUFactorization
Expand Down
6 changes: 3 additions & 3 deletions test/basictests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,17 +43,17 @@ function test_interface(alg, prob1, prob2)
sol = solve(prob2, alg; cache_kwargs...)
@test A2 * sol.u b2

# Test cache resue: base mechanism
# Test cache reuse: base mechanism
cache = SciMLBase.init(prob1, alg; cache_kwargs...) # initialize cache
sol = solve!(cache)
@test A1 * sol.u b1

# Test cache resue: only A changes
# Test cache reuse: only A changes
cache.A = deepcopy(A2)
sol = solve!(cache; cache_kwargs...)
@test A2 * sol.u b1

# Test cache resue: both A and b change
# Test cache reuse: both A and b change
cache.A = deepcopy(A2)
cache.b = b2
sol = solve!(cache; cache_kwargs...)
Expand Down
12 changes: 12 additions & 0 deletions test/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
using LinearSolve, Aqua
@testset "Aqua" begin
Aqua.find_persistent_tasks_deps(LinearSolve)
Aqua.test_ambiguities(LinearSolve, recursive = false, broken = true)
Aqua.test_deps_compat(LinearSolve, ignore = [:MKL_jll])
Aqua.test_piracies(LinearSolve,
treat_as_own = [LinearProblem])
Aqua.test_project_extras(LinearSolve)
Aqua.test_stale_deps(LinearSolve)
Aqua.test_unbound_args(LinearSolve)
Aqua.test_undefined_exports(LinearSolve)
end
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ const GROUP = get(ENV, "GROUP", "All")
const HAS_EXTENSIONS = isdefined(Base, :get_extension)

if GROUP == "All" || GROUP == "Core"
@time @safetestset "Quality Assurance" include("qa.jl")
@time @safetestset "Basic Tests" include("basictests.jl")
VERSION >= v"1.9" && @time @safetestset "Re-solve" include("resolve.jl")
@time @safetestset "Zero Initialization Tests" include("zeroinittests.jl")
Expand Down

0 comments on commit 2e55f9e

Please sign in to comment.