Skip to content

Commit 0f7f1cd

Browse files
ChrisRackauckas-ClaudeChrisRackauckasclaude
authored
ci: uniformize onto centralized CI (project-model SublibraryCI + cleanup) (#954)
* ci(SublibraryCI): test each lib/* via project-model tests.yml@v1 caller Switch SublibraryCI from the GROUP-dispatch sublibrary-tests.yml@v1 (which needs a root runtests.jl sublib dispatcher) to the project model: list lib/* and run each as a tests.yml@v1 caller with project: lib/X. The reusable workflow transitively git-develops the sublib's in-repo [sources] deps, so no per-repo dispatcher is needed. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci(SublibraryCI): collect sublibrary coverage (point dirs at lib/X) Drop coverage: false (cargo-culted from OrdinaryDiffEq, which disables it only to avoid Codecov flooding at 56-sublibrary scale). For this repo the sublib tests are the only thing covering the sublib's src, so collect it -- with coverage-directories pointed at the sublibrary (lib/X/src,ext) rather than the repo-root default (src,ext). Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci(SublibraryCI): build the matrix JSON with jq, not python3 Don't assume python3 is on the runner. jq is preinstalled on GitHub-hosted ubuntu runners (where the list-sublibraries job runs) and builds the JSON array directly. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci(SublibraryCI): build matrix JSON in pure shell (no jq/python3) jq isn't guaranteed on self-hosted runners any more than python3 is. lib/* directory names have no JSON-special characters, so build the array with plain shell quoting and depend on neither. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci(SublibraryCI): call centralized sublibrary-project-tests.yml@v1 The list-lib/*-and-matrix logic moved into the reusable sublibrary-project-tests.yml in SciML/.github, so this caller collapses to just the branch triggers, concurrency, and a single `uses:`. No duplicated detection logic per repo. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * ci: uniformize — rm-CompatHelper add-DocPreviewCleanup Part of bringing this repo onto the full centralized CI setup (SciML/.github @v1): remove retired CompatHelper (Dependabot drives [compat]) and/or add the centralized Documenter preview cleanup. Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: ChrisRackauckas-Claude <accounts@chrisrackauckas.com> Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent adcde96 commit 0f7f1cd

3 files changed

Lines changed: 19 additions & 40 deletions

File tree

.github/workflows/CompatHelper.yml

Lines changed: 0 additions & 35 deletions
This file was deleted.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Doc Preview Cleanup
2+
3+
on:
4+
pull_request:
5+
types: [closed]
6+
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
permissions:
12+
contents: write
13+
14+
jobs:
15+
doc-preview-cleanup:
16+
uses: "SciML/.github/.github/workflows/docs-preview-cleanup.yml@v1"
17+
secrets: "inherit"

.github/workflows/SublibraryCI.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,10 @@ on:
1313
- 'docs/**'
1414

1515
concurrency:
16-
# Skip intermediate builds: always.
17-
# Cancel intermediate builds: only if it is a pull request build.
1816
group: ${{ github.workflow }}-${{ github.ref }}
1917
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
2018

2119
jobs:
22-
sublibrary-ci:
23-
name: "Sublibrary CI"
24-
uses: "SciML/.github/.github/workflows/sublibrary-tests.yml@v1"
20+
sublibraries:
21+
uses: "SciML/.github/.github/workflows/sublibrary-project-tests.yml@v1"
2522
secrets: "inherit"

0 commit comments

Comments
 (0)