Skip to content

Commit 7d2ce32

Browse files
Centralize CI to SciML reusable workflows
Convert all CI workflows to the centralized reusable workflows in SciML/.github (pinned @v1, secrets: inherit on every caller): - CI.yml: inline tests -> tests.yml@v1 (preserves lts/1/pre x ubuntu-latest x x64 matrix) - FormatCheck.yml: inline fredrikekre/runic-action -> runic.yml@v1 - SpellCheck.yml: inline crate-ci/typos -> spellcheck.yml@v1 - Downgrade.yml: inline -> downgrade.yml@v1 (preserves if: false, Core group, 1.10/1/pre, skip Pkg,TOML) - Documentation.yml: already a documentation.yml@v1 caller (unchanged) dependabot.yml: remove obsolete crate-ci/typos ignore (typos pin now lives in the central workflow); trim julia ecosystem to dirs with a Project.toml (/ and /docs). Co-Authored-By: Chris Rackauckas <accounts@chrisrackauckas.com> Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ea1c093 commit 7d2ce32

5 files changed

Lines changed: 20 additions & 57 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,10 @@ updates:
55
directory: "/" # Location of package manifests
66
schedule:
77
interval: "weekly"
8-
ignore:
9-
- dependency-name: "crate-ci/typos"
10-
update-types: ["version-update:semver-patch", "version-update:semver-minor"]
118
- package-ecosystem: "julia"
129
directories:
1310
- "/"
1411
- "/docs"
15-
- "/test"
1612
schedule:
1713
interval: "daily"
1814
groups:

.github/workflows/CI.yml

Lines changed: 6 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ concurrency:
1313
jobs:
1414
test:
1515
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
16-
runs-on: ${{ matrix.os }}
1716
strategy:
1817
fail-fast: false
1918
matrix:
@@ -25,22 +24,9 @@ jobs:
2524
- ubuntu-latest
2625
arch:
2726
- x64
28-
steps:
29-
- uses: actions/checkout@v6
30-
- uses: julia-actions/setup-julia@v3
31-
with:
32-
version: ${{ matrix.version }}
33-
arch: ${{ matrix.arch }}
34-
- uses: julia-actions/julia-downgrade-compat@v2
35-
if: ${{ matrix.version == '1.6' }}
36-
with:
37-
skip: Pkg, TOML
38-
- uses: julia-actions/cache@v3
39-
- uses: julia-actions/julia-buildpkg@v1
40-
- uses: julia-actions/julia-runtest@v1
41-
- uses: julia-actions/julia-processcoverage@v1
42-
- uses: codecov/codecov-action@v6
43-
with:
44-
files: lcov.info
45-
token: ${{ secrets.CODECOV_TOKEN }}
46-
fail_ci_if_error: false
27+
uses: "SciML/.github/.github/workflows/tests.yml@v1"
28+
with:
29+
julia-version: ${{ matrix.version }}
30+
julia-arch: ${{ matrix.arch }}
31+
os: ${{ matrix.os }}
32+
secrets: "inherit"

.github/workflows/Downgrade.yml

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -13,25 +13,16 @@ on:
1313
jobs:
1414
test:
1515
if: false
16-
runs-on: ubuntu-latest
16+
name: "Downgrade"
1717
strategy:
1818
matrix:
1919
group:
2020
- Core
21-
downgrade_mode: ['alldeps']
2221
julia-version: ['1.10', '1', 'pre']
23-
steps:
24-
- uses: actions/checkout@v6
25-
- uses: julia-actions/setup-julia@v3
26-
with:
27-
version: ${{ matrix.julia-version }}
28-
- uses: julia-actions/julia-downgrade-compat@v2
29-
# if: ${{ matrix.version == '1.6' }}
30-
with:
31-
skip: Pkg,TOML
32-
- uses: julia-actions/julia-buildpkg@v1
33-
- uses: julia-actions/julia-runtest@v1
34-
with:
35-
ALLOW_RERESOLVE: false
36-
env:
37-
GROUP: ${{ matrix.group }}
22+
uses: "SciML/.github/.github/workflows/downgrade.yml@v1"
23+
with:
24+
julia-version: ${{ matrix.julia-version }}
25+
group: ${{ matrix.group }}
26+
skip: "Pkg,TOML"
27+
allow-reresolve: false
28+
secrets: "inherit"

.github/workflows/FormatCheck.yml

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,6 @@ on:
1111

1212
jobs:
1313
runic:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v6
17-
- uses: julia-actions/setup-julia@v3
18-
with:
19-
version: '1'
20-
- uses: fredrikekre/runic-action@v1
21-
with:
22-
version: '1'
14+
name: "Runic"
15+
uses: "SciML/.github/.github/workflows/runic.yml@v1"
16+
secrets: "inherit"

.github/workflows/SpellCheck.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@ on: [pull_request]
44

55
jobs:
66
typos-check:
7-
name: Spell Check with Typos
8-
runs-on: ubuntu-latest
9-
steps:
10-
- name: Checkout Actions Repository
11-
uses: actions/checkout@v6
12-
- name: Check spelling
13-
uses: crate-ci/typos@v1.16.23
7+
name: "Spell Check with Typos"
8+
uses: "SciML/.github/.github/workflows/spellcheck.yml@v1"
9+
secrets: "inherit"

0 commit comments

Comments
 (0)