Skip to content

Commit 709a7d6

Browse files
Merge pull request #603 from ChrisRackauckas-Claude/claude/centralize-ci
ci: route CI through SciML/.github reusable workflows (@v1)
2 parents d4e51bf + 9a8f453 commit 709a7d6

4 files changed

Lines changed: 23 additions & 75 deletions

File tree

.github/workflows/Downgrade.yml

Lines changed: 9 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,16 @@ on:
1212
- 'docs/**'
1313
jobs:
1414
test:
15-
runs-on: ubuntu-latest
15+
name: "Downgrade"
1616
strategy:
17+
fail-fast: false
1718
matrix:
1819
group:
1920
- Core
20-
downgrade_mode: ['alldeps']
21-
julia-version: ['1.10']
22-
steps:
23-
- uses: actions/checkout@v6
24-
- uses: julia-actions/setup-julia@v3
25-
with:
26-
version: ${{ matrix.julia-version }}
27-
- uses: julia-actions/julia-downgrade-compat@v2
28-
# if: ${{ matrix.version == '1.6' }}
29-
with:
30-
skip: Pkg,TOML
31-
- uses: julia-actions/julia-buildpkg@v1
32-
- uses: julia-actions/julia-runtest@v1
33-
with:
34-
allow_reresolve: false
35-
env:
36-
GROUP: ${{ matrix.group }}
21+
uses: "SciML/.github/.github/workflows/downgrade.yml@v1"
22+
with:
23+
julia-version: "1.10"
24+
group: "${{ matrix.group }}"
25+
skip: "Pkg,TOML"
26+
allow-reresolve: false
27+
secrets: "inherit"

.github/workflows/Downstream.yml

Lines changed: 8 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,10 @@ on:
77

88
jobs:
99
test:
10-
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
11-
runs-on: ${{ matrix.os }}
12-
env:
13-
GROUP: ${{ matrix.package.group }}
10+
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}
1411
strategy:
1512
fail-fast: false
1613
matrix:
17-
julia-version: [1]
18-
os: [ubuntu-latest]
1914
package:
2015
- {user: SciML, repo: SciMLBase.jl, group: Core}
2116
- {user: SciML, repo: DiffEqBase.jl, group: Core}
@@ -32,38 +27,10 @@ jobs:
3227
- {user: SciML, repo: SciMLSensitivity.jl, group: Core5}
3328
- {user: SciML, repo: SciMLSensitivity.jl, group: Core6}
3429
- {user: SciML, repo: LabelledArrays.jl, group: RecursiveArrayTools}
35-
steps:
36-
- uses: actions/checkout@v6
37-
- uses: julia-actions/setup-julia@v3
38-
with:
39-
version: ${{ matrix.julia-version }}
40-
arch: x64
41-
- uses: julia-actions/julia-buildpkg@latest
42-
- name: Clone Downstream
43-
uses: actions/checkout@v6
44-
with:
45-
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
46-
path: downstream
47-
- name: Load this and run the downstream tests
48-
shell: julia --color=yes --project=downstream {0}
49-
run: |
50-
using Pkg
51-
try
52-
# force it to use this PR's version of the package
53-
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
54-
Pkg.update()
55-
Pkg.test(coverage=true) # resolver may fail with test time deps
56-
catch err
57-
err isa Pkg.Resolve.ResolverError || rethrow()
58-
# If we can't resolve that means this is incompatible by SemVer and this is fine
59-
# It means we marked this as a breaking change, so we don't need to worry about
60-
# Mistakenly introducing a breaking change, as we have intentionally made one
61-
@info "Not compatible with this release. No problem." exception=err
62-
exit(0) # Exit immediately, as a success
63-
end
64-
- uses: julia-actions/julia-processcoverage@v1
65-
- uses: codecov/codecov-action@v6
66-
with:
67-
files: lcov.info
68-
token: ${{ secrets.CODECOV_TOKEN }}
69-
fail_ci_if_error: true
30+
uses: "SciML/.github/.github/workflows/downstream.yml@v1"
31+
with:
32+
owner: "${{ matrix.package.user }}"
33+
repo: "${{ matrix.package.repo }}"
34+
group: "${{ matrix.package.group }}"
35+
julia-version: "1"
36+
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.18.0
7+
name: "Spell Check with Typos"
8+
uses: "SciML/.github/.github/workflows/spellcheck.yml@v1"
9+
secrets: "inherit"

0 commit comments

Comments
 (0)