Skip to content

Commit 97790c7

Browse files
Merge pull request #378 from ChrisRackauckas-Claude/migrate-to-centralized-workflows
Migrate CI to centralized SciML reusable workflows
2 parents 2ac6f94 + f98bff5 commit 97790c7

6 files changed

Lines changed: 44 additions & 89 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,6 @@ 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
- "/"

.github/workflows/FormatCheck.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
name: format-check
2-
1+
name: Format Check
32
on:
43
push:
54
branches:
@@ -8,15 +7,11 @@ on:
87
- 'release-'
98
tags: '*'
109
pull_request:
11-
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1213
jobs:
1314
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'
15+
name: Format Check
16+
uses: "SciML/.github/.github/workflows/runic.yml@v1"
17+
secrets: "inherit"

.github/workflows/SpellCheck.yml

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,10 @@
11
name: Spell Check
2-
32
on: [pull_request]
4-
3+
concurrency:
4+
group: ${{ github.workflow }}-${{ github.ref }}
5+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
56
jobs:
67
typos-check:
78
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.34.0
9+
uses: "SciML/.github/.github/workflows/spellcheck.yml@v1"
10+
secrets: "inherit"

.github/workflows/ci.yml

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,12 @@ on:
77
branches:
88
- main
99
tags: '*'
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1013
jobs:
1114
test:
12-
name: Julia ${{ matrix.version }} - ${{ matrix.group }} - ${{ github.event_name }}
13-
runs-on: ${{ matrix.os }}
15+
name: Tests
1416
strategy:
1517
fail-fast: false
1618
matrix:
@@ -23,40 +25,17 @@ jobs:
2325
- nopre
2426
version:
2527
- 'lts'
26-
- '1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
28+
- '1'
2729
- 'pre'
28-
os:
29-
- ubuntu-latest
30-
arch:
31-
- x64
3230
exclude:
3331
- group: nopre
3432
version: 'pre'
3533
- group: Downstream
3634
version: 'pre'
3735
- group: Reactant
3836
version: 'pre'
39-
steps:
40-
- uses: actions/checkout@v6
41-
- uses: julia-actions/setup-julia@v3
42-
with:
43-
version: ${{ matrix.version }}
44-
arch: ${{ matrix.arch }}
45-
- uses: actions/cache@v5
46-
env:
47-
cache-name: cache-artifacts
48-
with:
49-
path: ~/.julia/artifacts
50-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
51-
restore-keys: |
52-
${{ runner.os }}-test-${{ env.cache-name }}-
53-
${{ runner.os }}-test-
54-
${{ runner.os }}-
55-
- uses: julia-actions/julia-buildpkg@v1
56-
- uses: julia-actions/julia-runtest@v1
57-
env:
58-
GROUP: ${{ matrix.group }}
59-
- uses: julia-actions/julia-processcoverage@v1
60-
- uses: codecov/codecov-action@v6
61-
with:
62-
file: lcov.info
37+
uses: "SciML/.github/.github/workflows/tests.yml@v1"
38+
with:
39+
group: "${{ matrix.group }}"
40+
julia-version: "${{ matrix.version }}"
41+
secrets: "inherit"

.github/workflows/docs.yml

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
name: Documentation
2-
32
on:
43
push:
54
branches: [main]
65
tags: '*'
76
pull_request:
8-
7+
concurrency:
8+
group: ${{ github.workflow }}-${{ github.ref }}
9+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
910
jobs:
10-
build:
11-
runs-on: ubuntu-latest
12-
steps:
13-
- uses: actions/checkout@v6
14-
- uses: julia-actions/setup-julia@latest
15-
with:
16-
version: '1.10'
17-
- name: Install dependencies
18-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
19-
- name: Build and deploy
20-
env:
21-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
22-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
23-
run: julia --project=docs/ docs/make.jl
11+
docs:
12+
name: Documentation
13+
uses: "SciML/.github/.github/workflows/documentation.yml@v1"
14+
with:
15+
coverage: false
16+
secrets: "inherit"

.github/workflows/downgrade.yml

Lines changed: 13 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,21 @@ on:
1010
- main
1111
paths-ignore:
1212
- 'docs/**'
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
1316
jobs:
14-
test:
15-
runs-on: ubuntu-latest
17+
downgrade:
18+
name: Downgrade
1619
strategy:
20+
fail-fast: false
1721
matrix:
1822
group:
1923
- 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 }}
24+
uses: "SciML/.github/.github/workflows/downgrade.yml@v1"
25+
with:
26+
group: "${{ matrix.group }}"
27+
julia-version: "1.10"
28+
skip: "Pkg,TOML"
29+
allow-reresolve: false
30+
secrets: "inherit"

0 commit comments

Comments
 (0)