From 6d53aa86ab57a58fe5e989c2ffbefbef0f21bac6 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Mon, 8 Jun 2026 07:58:08 -0400 Subject: [PATCH] Canonical CI: grouped-tests.yml + root test/test_groups.toml Convert the root test workflow (Tests.yml) into a thin caller of the canonical SciML/.github grouped-tests.yml@v1 reusable workflow, with the test matrix declared once in test/test_groups.toml at the repo root. The single "All" group (versions ["1","lts"], os [ubuntu-latest, macos-latest, windows-latest]) reproduces the previous Tests.yml matrix exactly: 6 cells, each running the full suite. runtests.jl runs QA whenever GROUP != "Core", so GROUP=All runs QA + all functional tests in one job per cell, identical to the old unset-GROUP behavior. on: triggers and concurrency: are preserved verbatim; name: "Tests" is kept so the branch-protection status check is unchanged. No other workflow files are touched and runtests.jl is unchanged. Co-Authored-By: Chris Rackauckas Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/Tests.yml | 16 +--------------- test/test_groups.toml | 9 +++++++++ 2 files changed, 10 insertions(+), 15 deletions(-) create mode 100644 test/test_groups.toml diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml index 2fdf6a9..f15dcba 100644 --- a/.github/workflows/Tests.yml +++ b/.github/workflows/Tests.yml @@ -20,19 +20,5 @@ concurrency: jobs: tests: - name: "Tests" - strategy: - fail-fast: false - matrix: - version: - - "1" - - "lts" - 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/test/test_groups.toml b/test/test_groups.toml new file mode 100644 index 0000000..8b1a6ae --- /dev/null +++ b/test/test_groups.toml @@ -0,0 +1,9 @@ +# Root test-group matrix for ModelingToolkitNeuralNets.jl, consumed by the +# canonical grouped-tests.yml@v1 caller. The single "All" group reproduces the +# previous Tests.yml matrix: the full suite (QA + functional tests, dispatched +# via GROUP=All in test/runtests.jl) on Julia "1" and "lts", across all three +# OSes. runtests.jl runs QA whenever GROUP != "Core", so GROUP=All runs +# everything in one job per cell, matching the old behavior exactly. +[All] +versions = ["1", "lts"] +os = ["ubuntu-latest", "macos-latest", "windows-latest"]