Skip to content

Commit

Permalink
Aqua + typos CI
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStrouwen committed Dec 2, 2023
1 parent f674f20 commit 0178fc4
Show file tree
Hide file tree
Showing 6 changed files with 38 additions and 6 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]
3 changes: 3 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[default.extend-words]
datas = "datas"
Strat = "Strat"
9 changes: 6 additions & 3 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ ModelingToolkit = "961ee093-0014-501f-94e3-6117800e7a78"
NLopt = "76087f3c-5699-56af-9a33-bf431cd00edd"
Optimization = "7f7a1694-90dd-40f0-9382-eb1efda571ba"
OptimizationBBO = "3e6eede4-6085-4f62-9a71-46d9bc1eb92b"
OptimizationMOI = "fd9f6733-72f4-499f-8506-86b2bdd0dea1"
OptimizationNLopt = "4e6fcdb7-1186-4e1f-a706-475e75c168bb"
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Reexport = "189a3867-3050-52da-a836-e630ba90ab69"
Expand All @@ -21,25 +20,29 @@ SciMLExpectations = "afe9f18d-7609-4d0e-b7b7-af0cb72b8ea8"
Turing = "fce5fe82-541a-59a6-adf8-730c64b5f9a0"

[compat]
Aqua = "0.8"
DifferentialEquations = "7"
Distributions = "0.25"
GlobalSensitivity = "2"
LinearAlgebra = "1"
ModelingToolkit = "8"
NLopt = "0.6, 1"
Optimization = "3"
OptimizationBBO = "0.1"
OptimizationMOI = "0.1"
OptimizationNLopt = "0.1"
Plots = "1"
Reexport = "1"
SafeTestsets = "0.1"
SciMLBase = "1.93.1, 2"
SciMLExpectations = "2"
Test = "1"
Turing = "0.22, 0.23, 0.24"
julia = "1.6"

[extras]
Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595"
SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["SafeTestsets", "Test"]
test = ["Aqua", "SafeTestsets", "Test"]
4 changes: 2 additions & 2 deletions docs/src/scenarios/scenario3.md
Original file line number Diff line number Diff line change
Expand Up @@ -196,8 +196,8 @@ plot(sold)

```julia
sols = []
u_detecs = 0:0.1:1
for x in u_detecs
u_detects = 0:0.1:1
for x in u_detects
probd = remake(probd, p = [u_hosp => x])
sold = solve(probd; saveat = sold.t)
push!(sols, sold)
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 EasyModelAnalysis, Aqua
@testset "Aqua" begin
Aqua.find_persistent_tasks_deps(EasyModelAnalysis)
Aqua.test_ambiguities(EasyModelAnalysis, recursive = false)
Aqua.test_deps_compat(EasyModelAnalysis)
Aqua.test_piracies(EasyModelAnalysis,
treat_as_own = [])
Aqua.test_project_extras(EasyModelAnalysis)
Aqua.test_stale_deps(EasyModelAnalysis)
Aqua.test_unbound_args(EasyModelAnalysis)
Aqua.test_undefined_exports(EasyModelAnalysis, broken = true)
end
3 changes: 2 additions & 1 deletion test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,14 @@ const GROUP = get(ENV, "GROUP", "All")

@time begin
if GROUP == "All" || GROUP == "Core"
@time @safetestset "Quality Assurance" include("qa.jl")
@time @safetestset "Basic Tests" include("basics.jl")
@time @safetestset "Sensitivity Tests" include("sensitivity.jl")
VERSION >= v"1.9" && @time @safetestset "Ensemble Tests" include("ensemble.jl")
@time @safetestset "Threshold Tests" include("threshold.jl")
@time @safetestset "Example Tests" include("examples.jl")
end

if GROUP == "All" || GROUP == "Datafit"
@time @safetestset "Datafit Tests" include("datafit.jl")
end
Expand Down

0 comments on commit 0178fc4

Please sign in to comment.