Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Aqua + typos CI #639

Merged
merged 2 commits into from
Dec 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ jobs:
- OptimizationPolyalgorithms
version:
- '1'
- '1.6'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v1
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
strategy:
fail-fast: false
matrix:
julia-version: [1,1.6]
julia-version: [1]
os: [ubuntu-latest]
package:
- {user: SciML, repo: DiffEqFlux.jl, group: DiffEqFlux}
Expand Down
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"
14 changes: 13 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,14 +46,26 @@ 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"
julia = "1.6"
Tracker = "0.2"
Zygote = "0.6"
julia = "1.9"

[extras]
Enzyme = "7da242da-08ed-463a-9acd-ee780be4f1d9"
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
Loading