Skip to content

Commit ef2fa0f

Browse files
Merge pull request #102 from ChrisRackauckas-Claude/migrate-to-centralized-workflows
Migrate CI to centralized SciML/.github reusable workflows
2 parents 5d1c94f + 876b3ef commit ef2fa0f

7 files changed

Lines changed: 40 additions & 116 deletions

File tree

.github/dependabot.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ 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"]
8+
- package-ecosystem: "julia"
9+
directories:
10+
- "/"
11+
- "/docs"
12+
- "/test"
13+
schedule:
14+
interval: "daily"
15+
groups:
16+
all-julia-packages:
17+
patterns:
18+
- "*"

.github/workflows/CI.yml

Lines changed: 10 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -12,28 +12,21 @@ concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1414
jobs:
15-
test:
16-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
17-
runs-on: ${{ matrix.os }}
18-
timeout-minutes: 60
19-
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
20-
actions: write
21-
contents: read
15+
tests:
16+
name: "Tests"
2217
strategy:
2318
fail-fast: false
2419
matrix:
2520
version:
26-
- '1'
21+
- "1"
2722
os:
2823
- ubuntu-latest
2924
arch:
3025
- x64
31-
steps:
32-
- uses: actions/checkout@v6
33-
- uses: julia-actions/setup-julia@v3
34-
with:
35-
version: ${{ matrix.version }}
36-
arch: ${{ matrix.arch }}
37-
- uses: julia-actions/cache@v2
38-
- uses: julia-actions/julia-buildpkg@v1
39-
- uses: julia-actions/julia-runtest@v1
26+
uses: "SciML/.github/.github/workflows/tests.yml@v1"
27+
with:
28+
julia-version: "${{ matrix.version }}"
29+
os: "${{ matrix.os }}"
30+
julia-arch: "${{ matrix.arch }}"
31+
coverage: false
32+
secrets: "inherit"

.github/workflows/CompatHelper.yml

Lines changed: 0 additions & 16 deletions
This file was deleted.

.github/workflows/Documenter.yml

Lines changed: 6 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,51 +1,17 @@
1-
# Sample workflow for building and deploying a VitePress site to GitHub Pages
2-
#
3-
name: Documenter
4-
1+
name: Documentation
52
on:
6-
# Runs on pushes targeting the `master` branch. Change this to `main` if you're
7-
# using the `main` branch as the default branch.
83
push:
94
branches:
105
- main
116
tags: ['*']
127
pull_request:
13-
14-
# Allows you to run this workflow manually from the Actions tab
158
workflow_dispatch:
16-
17-
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
18-
permissions:
19-
contents: write
20-
pages: write
21-
id-token: write
22-
statuses: write
23-
24-
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
25-
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
269
concurrency:
2710
group: pages
2811
cancel-in-progress: false
29-
3012
jobs:
31-
# Build job
32-
build:
33-
runs-on: ubuntu-latest
34-
steps:
35-
- name: Checkout
36-
uses: actions/checkout@v6
37-
- name: Setup Julia
38-
uses: julia-actions/setup-julia@v3
39-
- name: Pull Julia cache
40-
uses: julia-actions/cache@v2
41-
- name: Install documentation dependencies
42-
run: julia --project=docs -e 'using Pkg; Pkg.develop(PackageSpec(path = pwd())); Pkg.instantiate(); Pkg.precompile(); Pkg.status()'
43-
#- name: Creating new mds from src
44-
- name: Build and deploy docs
45-
uses: julia-actions/julia-docdeploy@v1
46-
env:
47-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
48-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
49-
GKSwstype: "100" # for Plots.jl plots (if you have them)
50-
JULIA_DEBUG: "Documenter"
51-
DATADEPS_ALWAYS_ACCEPT: true
13+
documentation:
14+
uses: "SciML/.github/.github/workflows/documentation.yml@v1"
15+
with:
16+
coverage: false
17+
secrets: "inherit"

.github/workflows/Downgrade.yml

Lines changed: 9 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,19 @@ name: Downgrade
22
on:
33
pull_request:
44
branches:
5-
- master
5+
- main
66
paths-ignore:
77
- 'docs/**'
88
push:
99
branches:
10-
- master
10+
- main
1111
paths-ignore:
1212
- 'docs/**'
1313
jobs:
14-
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
14+
downgrade:
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/FormatCheck.yml

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
name: format-check
2-
32
on:
43
push:
54
branches:
@@ -8,15 +7,7 @@ on:
87
- 'release-'
98
tags: '*'
109
pull_request:
11-
1210
jobs:
1311
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'
12+
uses: "SciML/.github/.github/workflows/runic.yml@v1"
13+
secrets: "inherit"

.github/workflows/SpellCheck.yml

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
name: Spell Check
2-
32
on: [pull_request]
4-
53
jobs:
64
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.31.1
5+
uses: "SciML/.github/.github/workflows/spellcheck.yml@v1"
6+
secrets: "inherit"

0 commit comments

Comments
 (0)