Skip to content

Commit d985656

Browse files
committed
Aqua + typos CI
1 parent c178ba0 commit d985656

File tree

6 files changed

+43
-0
lines changed

6 files changed

+43
-0
lines changed

.github/workflows/SpellCheck.yml

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: Spell Check
2+
3+
on: [pull_request]
4+
5+
jobs:
6+
typos-check:
7+
name: Spell Check with Typos
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout Actions Repository
11+
uses: actions/checkout@v3
12+
- name: Check spelling
13+
uses: crate-ci/[email protected]

.typos.toml

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[default.extend-words]
2+
AGS = "AGS"

Project.toml

+12
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,25 @@ ArrayInterface = "6, 7"
4646
ConsoleProgressMonitor = "0.1"
4747
DocStringExtensions = "0.8, 0.9"
4848
Enzyme = "0.11.2"
49+
FiniteDiff = "2"
50+
ForwardDiff = "0.10"
51+
LinearAlgebra = "1"
52+
Logging = "1"
4953
LoggingExtras = "0.4, 0.5, 1"
54+
ModelingToolkit = "8"
55+
Pkg = "1"
56+
Printf = "1"
5057
ProgressLogging = "0.1"
5158
Reexport = "0.2, 1.0"
5259
Requires = "1.0"
60+
ReverseDiff = "1"
5361
SciMLBase = "1.79.0, 2"
62+
SparseArrays = "1"
63+
SparseDiffTools = "2"
5464
Symbolics = "5"
5565
TerminalLoggers = "0.1"
66+
Tracker = "0.2"
67+
Zygote = "0.6"
5668
julia = "1.6"
5769

5870
[extras]

test/Project.toml

+2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[deps]
2+
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
23
BenchmarkTools = "6e4b80f9-dd63-53aa-95a3-0cdb28fa8baf"
34
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
45
ComponentArrays = "b0b7db55-cfe3-40fc-9ded-d10e2dbeff66"
@@ -26,6 +27,7 @@ Tracker = "9f7883ad-71c0-57eb-9f7f-b5c9e6d3789c"
2627
Zygote = "e88e6eb3-aa80-5325-afca-941959d7151f"
2728

2829
[compat]
30+
Aqua = "0.8"
2931
ComponentArrays = ">= 0.13.9"
3032
DiffEqFlux = ">= 2"
3133
Enzyme = ">= 0.11.0"

test/qa.jl

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
using Optimization, Aqua
2+
@testset "Aqua" begin
3+
Aqua.find_persistent_tasks_deps(Optimization)
4+
Aqua.test_ambiguities(Optimization, recursive = false)
5+
Aqua.test_deps_compat(Optimization)
6+
Aqua.test_piracies(Optimization,
7+
treat_as_own = [OptimizationProblem,
8+
Optimization.SciMLBase.AbstractOptimizationCache])
9+
Aqua.test_project_extras(Optimization)
10+
Aqua.test_stale_deps(Optimization)
11+
Aqua.test_unbound_args(Optimization)
12+
Aqua.test_undefined_exports(Optimization)
13+
end

test/runtests.jl

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ end
2222

2323
@time begin
2424
if GROUP == "All" || GROUP == "Core"
25+
@safetestset "Quality Assurance" include("qa.jl")
2526
VERSION >= v"1.9" && @safetestset "AD Tests" begin
2627
include("ADtests.jl")
2728
end

0 commit comments

Comments
 (0)