Skip to content

Commit a1f6370

Browse files
Merge pull request #47 from ChrisRackauckas-Claude/centralize-ci
Centralize CI to SciML reusable workflows
2 parents 7a37535 + 79670e2 commit a1f6370

5 files changed

Lines changed: 22 additions & 80 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@ 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
- "/"
14-
- "/test"
1511
schedule:
1612
interval: "daily"
1713
groups:

.github/workflows/Downgrade.yml

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,9 @@ on:
1212
- 'docs/**'
1313
jobs:
1414
test:
15-
runs-on: ubuntu-latest
16-
strategy:
17-
matrix:
18-
downgrade_mode: ['alldeps']
19-
julia-version: ['1.10']
20-
steps:
21-
- uses: actions/checkout@v6
22-
- uses: julia-actions/setup-julia@v3
23-
with:
24-
version: ${{ matrix.julia-version }}
25-
- uses: julia-actions/julia-downgrade-compat@v2
26-
with:
27-
skip: Pkg,TOML
28-
- uses: julia-actions/julia-buildpkg@v1
29-
- uses: julia-actions/julia-runtest@v1
30-
with:
31-
ALLOW_RERESOLVE: false
15+
uses: "SciML/.github/.github/workflows/downgrade.yml@v1"
16+
with:
17+
julia-version: "1.10"
18+
skip: "Pkg,TOML"
19+
allow-reresolve: false
20+
secrets: "inherit"

.github/workflows/Downstream.yml

Lines changed: 9 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,10 @@ concurrency:
1212
jobs:
1313
test:
1414
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
15-
runs-on: ${{ matrix.os }}
16-
env:
17-
GROUP: ${{ matrix.package.group }}
1815
strategy:
1916
fail-fast: false
2017
matrix:
21-
julia-version: [1]
22-
os: [ubuntu-latest]
18+
julia-version: ["1"]
2319
package:
2420
- {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceI}
2521
- {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceII}
@@ -31,42 +27,11 @@ jobs:
3127
- {user: SciML, repo: OrdinaryDiffEq.jl, group: RegressionI}
3228
- {user: SciML, repo: OrdinaryDiffEq.jl, group: RegressionII}
3329
- {user: SciML, repo: SimpleDiffEq.jl, group: Core}
34-
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-
env:
65-
RETESTITEMS_NWORKERS: 4
66-
RETESTITEMS_NWORKER_THREADS: 2
67-
- uses: julia-actions/julia-processcoverage@v1
68-
- uses: codecov/codecov-action@v6
69-
with:
70-
files: lcov.info
71-
token: ${{ secrets.CODECOV_TOKEN }}
72-
fail_ci_if_error: true
30+
uses: "SciML/.github/.github/workflows/downstream.yml@v1"
31+
with:
32+
julia-version: "${{ matrix.julia-version }}"
33+
julia-arch: "x64"
34+
owner: "${{ matrix.package.user }}"
35+
repo: "${{ matrix.package.repo }}"
36+
group: "${{ matrix.package.group }}"
37+
secrets: "inherit"

.github/workflows/FormatCheck.yml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ 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+
uses: "SciML/.github/.github/workflows/runic.yml@v1"
15+
with:
16+
julia-version: "1"
17+
runic-version: "1"
18+
secrets: "inherit"

.github/workflows/SpellCheck.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,5 @@ on: [pull_request]
55
jobs:
66
typos-check:
77
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
8+
uses: "SciML/.github/.github/workflows/spellcheck.yml@v1"
9+
secrets: "inherit"

0 commit comments

Comments
 (0)