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 c178ba0 commit d985656
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 0 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]
2 changes: 2 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[default.extend-words]
AGS = "AGS"
12 changes: 12 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,13 +46,25 @@ ArrayInterface = "6, 7"
ConsoleProgressMonitor = "0.1"
DocStringExtensions = "0.8, 0.9"
Enzyme = "0.11.2"
FiniteDiff = "2"
ForwardDiff = "0.10"
LinearAlgebra = "1"
Logging = "1"
LoggingExtras = "0.4, 0.5, 1"
ModelingToolkit = "8"
Pkg = "1"
Printf = "1"
ProgressLogging = "0.1"
Reexport = "0.2, 1.0"
Requires = "1.0"
ReverseDiff = "1"
SciMLBase = "1.79.0, 2"
SparseArrays = "1"
SparseDiffTools = "2"
Symbolics = "5"
TerminalLoggers = "0.1"
Tracker = "0.2"
Zygote = "0.6"
julia = "1.6"

[extras]
Expand Down
2 changes: 2 additions & 0 deletions test/Project.toml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
[deps]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
Expand Down Expand Up @@ -26,6 +27,7 @@ Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"

[compat]
Aqua = "0.8"
ComponentArrays = ">= 0.13.9"
DiffEqFlux = ">= 2"
Enzyme = ">= 0.11.0"
Expand Down
13 changes: 13 additions & 0 deletions test/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
using Optimization, Aqua
@testset "Aqua" begin
Aqua.find_persistent_tasks_deps(Optimization)
Aqua.test_ambiguities(Optimization, recursive = false)
Aqua.test_deps_compat(Optimization)
Aqua.test_piracies(Optimization,
treat_as_own = [OptimizationProblem,
Optimization.SciMLBase.AbstractOptimizationCache])
Aqua.test_project_extras(Optimization)
Aqua.test_stale_deps(Optimization)
Aqua.test_unbound_args(Optimization)
Aqua.test_undefined_exports(Optimization)
end
1 change: 1 addition & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ end

@time begin
if GROUP == "All" || GROUP == "Core"
@safetestset "Quality Assurance" include("qa.jl")
VERSION >= v"1.9" && @safetestset "AD Tests" begin
include("ADtests.jl")
end
Expand Down

0 comments on commit d985656

Please sign in to comment.