From f7991f993578270cddc9af09509d7d28be97dcd6 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Thu, 4 Jun 2026 11:14:05 -0400 Subject: [PATCH] ci: route CI through SciML/.github reusable workflows (@v1) Centralize this monorepo's GitHub Actions onto the shared SciML/.github reusable workflows, preserving the existing config and coverage. - CI.yml (Tests): drop the manual project matrix that listed `.` plus each lib/* sublibrary; now a clean main-package caller of tests.yml@v1 over the existing version matrix ["1","lts"]. Per-sublibrary testing moves to SublibraryCI.yml below. - SublibraryCI.yml (new): consolidates the per-sublibrary entries into a single caller of sublibrary-tests.yml@v1, which auto-discovers lib/*. - FormatCheck.yml: bespoke fredrikekre/runic-action -> runic.yml@v1. - SpellCheck.yml: bespoke crate-ci/typos -> spellcheck.yml@v1. Left bespoke/untouched: Downgrade.yml (already uses downgrade.yml@v1), TagBot.yml (non-CI automation, no reusable). Co-Authored-By: Chris Rackauckas --- .github/workflows/CI.yml | 10 ---------- .github/workflows/FormatCheck.yml | 12 +++--------- .github/workflows/SpellCheck.yml | 10 +++------- .github/workflows/SublibraryCI.yml | 18 ++++++++++++++++++ 4 files changed, 24 insertions(+), 26 deletions(-) create mode 100644 .github/workflows/SublibraryCI.yml diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index 6dde276..d6112a8 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -21,17 +21,7 @@ jobs: version: - "1" - "lts" - project: - - '.' - - 'lib/DAEProblemLibrary' - - 'lib/DDEProblemLibrary' - - 'lib/JumpProblemLibrary' - - 'lib/ODEProblemLibrary' - - 'lib/SDEProblemLibrary' - - 'lib/BVProblemLibrary' - - 'lib/NonlinearProblemLibrary' uses: "SciML/.github/.github/workflows/tests.yml@v1" with: julia-version: "${{ matrix.version }}" - project: "${{ matrix.project }}" secrets: "inherit" diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index ee667ce..32f2e1f 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -11,12 +11,6 @@ on: jobs: runic: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v6 - - uses: julia-actions/setup-julia@v3 - with: - version: '1' - - uses: fredrikekre/runic-action@v1 - with: - version: '1' + name: "Runic" + uses: "SciML/.github/.github/workflows/runic.yml@v1" + secrets: "inherit" diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml index a8e5983..a134515 100644 --- a/.github/workflows/SpellCheck.yml +++ b/.github/workflows/SpellCheck.yml @@ -4,10 +4,6 @@ on: [pull_request] jobs: typos-check: - name: Spell Check with Typos - runs-on: ubuntu-latest - steps: - - name: Checkout Actions Repository - uses: actions/checkout@v6 - - name: Check spelling - uses: crate-ci/typos@v1.18.0 + name: "Spell Check with Typos" + uses: "SciML/.github/.github/workflows/spellcheck.yml@v1" + secrets: "inherit" diff --git a/.github/workflows/SublibraryCI.yml b/.github/workflows/SublibraryCI.yml new file mode 100644 index 0000000..2101975 --- /dev/null +++ b/.github/workflows/SublibraryCI.yml @@ -0,0 +1,18 @@ +name: Sublibrary CI + +on: + pull_request: + branches: + - master + push: + branches: + - master + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + +jobs: + sublibrary-ci: + uses: "SciML/.github/.github/workflows/sublibrary-tests.yml@v1" + secrets: "inherit"