Skip to content

Commit

Permalink
Merge pull request #303 from AayushSabharwal/qa
Browse files Browse the repository at this point in the history
ci: add typos and Aqua CI
  • Loading branch information
ChrisRackauckas authored Dec 19, 2023
2 parents afa4a80 + c2666ea commit 094c2bb
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 7 deletions.
1 change: 0 additions & 1 deletion .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ jobs:
- Downstream
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: SciMLBase.jl, group: Core}
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]
1 change: 1 addition & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[default.extend-words]
15 changes: 15 additions & 0 deletions Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,31 @@ RecursiveArrayToolsZygoteExt = "Zygote"

[compat]
Adapt = "3, 4"
Aqua = "0.8"
ArrayInterface = "7"
DocStringExtensions = "0.8, 0.9"
ForwardDiff = "0.10"
GPUArraysCore = "0.1"
IteratorInterfaceExtensions = "1"
LabelledArrays = "1"
LinearAlgebra = "1"
Measurements = "2"
MonteCarloMeasurements = "1"
NLsolve = "4"
Pkg = "1"
Random = "1"
RecipesBase = "0.7, 0.8, 1.0"
Requires = "1.0"
SafeTestsets = "0.1"
StaticArrays = "0.12"
StaticArraysCore = "1.1"
Statistics = "1"
StructArrays = "0.6"
SymbolicIndexingInterface = "0.3"
Tables = "1"
Test = "1"
Tracker = "0.2"
Unitful = "1"
Zygote = "0.6.56"
julia = "1.9"

Expand Down
11 changes: 11 additions & 0 deletions test/qa.jl
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
using RecursiveArrayTools, Aqua
@testset "Aqua" begin
Aqua.find_persistent_tasks_deps(RecursiveArrayTools)
Aqua.test_ambiguities(RecursiveArrayTools, recursive = false, broken = true)
Aqua.test_deps_compat(RecursiveArrayTools)
Aqua.test_piracies(RecursiveArrayTools)
Aqua.test_project_extras(RecursiveArrayTools)
Aqua.test_stale_deps(RecursiveArrayTools)
Aqua.test_unbound_args(RecursiveArrayTools)
Aqua.test_undefined_exports(RecursiveArrayTools)
end
8 changes: 3 additions & 5 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,13 +1,8 @@
using Pkg
using RecursiveArrayTools
using Test
using Aqua
using SafeTestsets

if VERSION >= v"1.9"
Aqua.test_all(RecursiveArrayTools, ambiguities = false)
end

@test_broken isempty(Test.detect_ambiguities(RecursiveArrayTools))
const GROUP = get(ENV, "GROUP", "All")
const is_APPVEYOR = (Sys.iswindows() && haskey(ENV, "APPVEYOR"))
Expand All @@ -26,6 +21,9 @@ end

@time begin
if GROUP == "Core" || GROUP == "All"
@time @safetestset "Quality Assurance" begin
include("qa.jl")
end
@time @safetestset "Utils Tests" begin
include("utils_test.jl")
end
Expand Down

0 comments on commit 094c2bb

Please sign in to comment.