diff --git a/.github/workflows/JET.yml b/.github/workflows/JET.yml deleted file mode 100644 index 34f1e85..0000000 --- a/.github/workflows/JET.yml +++ /dev/null @@ -1,42 +0,0 @@ -name: "JET" - -on: - pull_request: - branches: - - master - paths-ignore: - - 'docs/**' - push: - branches: - - master - paths-ignore: - - 'docs/**' - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }} - -jobs: - jet: - name: "JET" - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - version: - - "1" - - "lts" - steps: - - uses: actions/checkout@v6 - - uses: julia-actions/setup-julia@v3 - with: - version: ${{ matrix.version }} - - uses: julia-actions/cache@v3 - - name: "Instantiate test/jet" - run: | - julia --project=test/jet -e ' - using Pkg - Pkg.develop(path=".") - Pkg.instantiate()' - - name: "Run JET tests" - run: julia --project=test/jet test/jet/runtests.jl diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index f4f0626..d144132 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -20,20 +20,5 @@ concurrency: jobs: tests: - name: "Tests" - strategy: - fail-fast: false - matrix: - version: - - "1" - - "lts" - - "pre" - os: - - "ubuntu-latest" - - "macos-latest" - - "windows-latest" - uses: "SciML/.github/.github/workflows/tests.yml@v1" - with: - julia-version: "${{ matrix.version }}" - os: "${{ matrix.os }}" + uses: "SciML/.github/.github/workflows/grouped-tests.yml@v1" secrets: "inherit" diff --git a/Project.toml b/Project.toml index 3149a25..b7aba51 100644 --- a/Project.toml +++ b/Project.toml @@ -9,8 +9,6 @@ StaticArrayInterface = "0d7ed370-da01-4f52-bd93-41d350b8b718" [compat] AllocCheck = "0.2" -Aqua = "0.8" -ExplicitImports = "1.6" PrecompileTools = "1.0.1" SafeTestsets = "0.1" StaticArrayInterface = "1.2.1" @@ -19,10 +17,9 @@ julia = "1.10" [extras] AllocCheck = "9b6a8646-10ed-4001-bbdc-1d2f46dfbb1a" -Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" -ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" +Pkg = "44cfe95a-1eb2-52ea-b672-e2afdf69b78f" SafeTestsets = "1bc83da4-3b8d-516f-aca4-4fe02f6d838f" Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" [targets] -test = ["AllocCheck", "ExplicitImports", "Aqua", "Test", "SafeTestsets"] +test = ["AllocCheck", "Test", "SafeTestsets", "Pkg"] diff --git a/test/jet/Project.toml b/test/jet/Project.toml deleted file mode 100644 index 599f68b..0000000 --- a/test/jet/Project.toml +++ /dev/null @@ -1,8 +0,0 @@ -[deps] -EllipsisNotation = "da5c29d0-fa7d-589e-88eb-ea29b0a81949" -JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" -Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" - -[compat] -EllipsisNotation = "1" -JET = "0.9, 0.10, 0.11" diff --git a/test/qa.jl b/test/qa.jl index 704bac5..0b11858 100644 --- a/test/qa.jl +++ b/test/qa.jl @@ -3,7 +3,10 @@ using EllipsisNotation, Aqua @testset "Aqua" begin Aqua.find_persistent_tasks_deps(EllipsisNotation) Aqua.test_ambiguities(EllipsisNotation, recursive = false) - Aqua.test_deps_compat(EllipsisNotation) + Aqua.test_deps_compat(EllipsisNotation, check_extras = false) + # Aqua deps_compat extras check: `Pkg` is in [extras]/[targets].test without a [compat] entry. + # Tracked in https://github.com/SciML/EllipsisNotation.jl/issues/113 + @test_broken false Aqua.test_piracies(EllipsisNotation) Aqua.test_project_extras(EllipsisNotation) Aqua.test_stale_deps(EllipsisNotation) diff --git a/test/qa/Project.toml b/test/qa/Project.toml new file mode 100644 index 0000000..34f1662 --- /dev/null +++ b/test/qa/Project.toml @@ -0,0 +1,16 @@ +[deps] +Aqua = "4c88cf16-eb10-579e-8560-4a9242c79595" +EllipsisNotation = "da5c29d0-fa7d-589e-88eb-ea29b0a81949" +ExplicitImports = "7d51a73a-1435-4ff3-83d9-f097790105c7" +JET = "c3a54625-cd67-489e-a8e7-0a5a0ff4e31b" +Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40" + +[sources] +EllipsisNotation = {path = "../.."} + +[compat] +Aqua = "0.8" +ExplicitImports = "1.6" +JET = "0.9, 0.10, 0.11" +Test = "1" +julia = "1.10" diff --git a/test/jet/runtests.jl b/test/qa/jet.jl similarity index 100% rename from test/jet/runtests.jl rename to test/qa/jet.jl diff --git a/test/runtests.jl b/test/runtests.jl index 18bd5f1..06bc432 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -3,13 +3,18 @@ using SafeTestsets const GROUP = get(ENV, "GROUP", "All") if GROUP == "All" || GROUP == "Core" - @time @safetestset "Quality Assurance" include("qa.jl") - @time @safetestset "Explicit Imports" include("explicit_imports.jl") @time @safetestset "Basic Tests" include("basic.jl") @time @safetestset "Generic Tests" include("more_generic.jl") @time @safetestset "Cartesian Tests" include("cartesian.jl") + @time @safetestset "Allocation Tests" include("alloc_tests.jl") end -if GROUP == "nopre" - @time @safetestset "Allocation Tests" include("alloc_tests.jl") +if GROUP == "All" || GROUP == "QA" + using Pkg + Pkg.activate(joinpath(@__DIR__, "qa")) + Pkg.develop(path = joinpath(@__DIR__, "..")) + Pkg.instantiate() + @time @safetestset "Quality Assurance" include("qa.jl") + @time @safetestset "Explicit Imports" include("explicit_imports.jl") + @time @safetestset "JET" include(joinpath("qa", "jet.jl")) end diff --git a/test/test_groups.toml b/test/test_groups.toml new file mode 100644 index 0000000..8d7b74e --- /dev/null +++ b/test/test_groups.toml @@ -0,0 +1,6 @@ +[Core] +versions = ["lts", "1", "pre"] +os = ["ubuntu-latest", "windows-latest", "macos-latest"] + +[QA] +versions = ["lts", "1"]