From c291e3362b64125bcc5119630a7ea816cc9cbae1 Mon Sep 17 00:00:00 2001 From: ChrisRackauckas-Claude Date: Tue, 2 Jun 2026 12:49:15 -0400 Subject: [PATCH] Migrate CI to centralized SciML reusable workflows Normalize CI to the Sundials.jl standard set via SciML/.github reusable workflows (pinned @v1): - Add Tests.yml caller (version matrix ["1","lts"]); repo previously had no Tests workflow. - Convert Downgrade.yml to downgrade.yml@v1 (kept disabled with if:false, julia-version 1.10, skip Pkg,TOML as in the original). - Convert FormatCheck.yml (Runic) to runic.yml@v1. - Convert SpellCheck.yml (typos) to spellcheck.yml@v1. - dependabot.yml: drop the crate-ci/typos ignore block; preserve the existing github-actions and julia (/, /test) update configs. TagBot.yml left unchanged. No docs/ dir, so no documentation workflow. No CompatHelper workflow existed. Repo was already Runic-formatted (verified locally) and passes typos cleanly. Co-Authored-By: Chris Rackauckas Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/dependabot.yml | 3 --- .github/workflows/Downgrade.yml | 33 +++++++++++++------------------ .github/workflows/FormatCheck.yml | 18 ++++++++--------- .github/workflows/SpellCheck.yml | 12 ++++------- .github/workflows/Tests.yml | 31 +++++++++++++++++++++++++++++ 5 files changed, 57 insertions(+), 40 deletions(-) create mode 100644 .github/workflows/Tests.yml diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 8846004..c2b77ba 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -5,9 +5,6 @@ updates: directory: "/" # Location of package manifests schedule: interval: "weekly" - ignore: - - dependency-name: "crate-ci/typos" - update-types: ["version-update:semver-patch", "version-update:semver-minor"] - package-ecosystem: "julia" directories: - "/" diff --git a/.github/workflows/Downgrade.yml b/.github/workflows/Downgrade.yml index 0aa0e65..40e2b47 100644 --- a/.github/workflows/Downgrade.yml +++ b/.github/workflows/Downgrade.yml @@ -1,4 +1,5 @@ -name: Downgrade +name: "Downgrade" + on: pull_request: branches: @@ -10,23 +11,17 @@ on: - master paths-ignore: - 'docs/**' + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + jobs: - test: + downgrade: if: false - runs-on: ubuntu-latest - strategy: - matrix: - downgrade_mode: ['alldeps'] - julia-version: ['1.10'] - steps: - - uses: actions/checkout@v6 - - uses: julia-actions/setup-julia@v3 - with: - version: ${{ matrix.julia-version }} - - uses: julia-actions/julia-downgrade-compat@v2 - with: - skip: Pkg,TOML - - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@v1 - with: - ALLOW_RERESOLVE: false \ No newline at end of file + name: "Downgrade" + uses: "SciML/.github/.github/workflows/downgrade.yml@v1" + with: + julia-version: "1.10" + skip: "Pkg,TOML" + secrets: "inherit" diff --git a/.github/workflows/FormatCheck.yml b/.github/workflows/FormatCheck.yml index ee667ce..aa539b4 100644 --- a/.github/workflows/FormatCheck.yml +++ b/.github/workflows/FormatCheck.yml @@ -1,4 +1,4 @@ -name: format-check +name: "Format Check" on: push: @@ -9,14 +9,12 @@ on: tags: '*' pull_request: +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: ${{ github.ref != 'refs/heads/master' }} + 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 Format Check" + uses: "SciML/.github/.github/workflows/runic.yml@v1" + secrets: "inherit" diff --git a/.github/workflows/SpellCheck.yml b/.github/workflows/SpellCheck.yml index 26965fa..e408b94 100644 --- a/.github/workflows/SpellCheck.yml +++ b/.github/workflows/SpellCheck.yml @@ -1,13 +1,9 @@ -name: Spell Check +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@v6 - - name: Check spelling - uses: crate-ci/typos@v1.35.3 + name: "Spell Check with Typos" + uses: "SciML/.github/.github/workflows/spellcheck.yml@v1" + secrets: "inherit" diff --git a/.github/workflows/Tests.yml b/.github/workflows/Tests.yml new file mode 100644 index 0000000..2d5e396 --- /dev/null +++ b/.github/workflows/Tests.yml @@ -0,0 +1,31 @@ +name: "Tests" + +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 != 'refs/heads/master' }} + +jobs: + tests: + name: "Tests" + strategy: + fail-fast: false + matrix: + version: + - "1" + - "lts" + uses: "SciML/.github/.github/workflows/tests.yml@v1" + with: + julia-version: "${{ matrix.version }}" + secrets: "inherit"