Skip to content

Commit 6d57bc1

Browse files
Merge pull request #59 from ChrisRackauckas-Claude/centralize-ci
Centralize CI on SciML reusable workflows
2 parents 09c1a46 + 85da221 commit 6d57bc1

5 files changed

Lines changed: 19 additions & 81 deletions

File tree

.github/dependabot.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,3 @@ updates:
1515
all-julia-packages:
1616
patterns:
1717
- "*"
18-
ignore:
19-
- dependency-name: "crate-ci/typos"
20-
update-types: ["version-update:semver-patch", "version-update:semver-minor"]

.github/workflows/Downgrade.yml

Lines changed: 6 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,10 @@ on:
1111
paths-ignore:
1212
- 'docs/**'
1313
jobs:
14-
test:
14+
downgrade:
1515
if: false # Disabled: waiting on dependency updates. See issue for details.
16-
runs-on: ubuntu-latest
17-
strategy:
18-
matrix:
19-
downgrade_mode: ['alldeps']
20-
julia-version: ['1.10']
21-
steps:
22-
- uses: actions/checkout@v4
23-
- uses: julia-actions/setup-julia@v2
24-
with:
25-
version: ${{ matrix.julia-version }}
26-
- uses: julia-actions/julia-downgrade-compat@v2
27-
with:
28-
skip: Pkg,TOML
29-
- uses: julia-actions/julia-buildpkg@v1
30-
- uses: julia-actions/julia-runtest@v1
31-
with:
32-
ALLOW_RERESOLVE: false
16+
uses: "SciML/.github/.github/workflows/downgrade.yml@v1"
17+
with:
18+
julia-version: "1.10"
19+
skip: "Pkg,TOML"
20+
secrets: "inherit"

.github/workflows/Downstream.yml

Lines changed: 9 additions & 44 deletions
Original file line numberDiff line numberDiff line change
@@ -12,53 +12,18 @@ concurrency:
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
1414
jobs:
15-
test:
15+
downstream:
1616
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}
17-
runs-on: ${{ matrix.os }}
18-
env:
19-
GROUP: ${{ matrix.package.group }}
2017
strategy:
2118
fail-fast: false
2219
matrix:
23-
julia-version: ["1"]
24-
os: [ubuntu-latest]
2520
package:
2621
- { user: SciML, repo: BoundaryValueDiffEq.jl, group: All }
27-
steps:
28-
- uses: actions/checkout@v4
29-
- uses: julia-actions/setup-julia@v2
30-
with:
31-
version: ${{ matrix.julia-version }}
32-
arch: x64
33-
- uses: julia-actions/julia-buildpkg@v1
34-
- name: Clone Downstream
35-
uses: actions/checkout@v4
36-
with:
37-
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
38-
path: downstream
39-
- name: Load this and run the downstream tests
40-
shell: julia --code-coverage=user --color=yes --project=downstream {0}
41-
run: |
42-
using Pkg
43-
try
44-
# force it to use this PR's version of the package
45-
Pkg.develop(PackageSpec(path=".")) # resolver may fail with main deps
46-
Pkg.update()
47-
Pkg.test() # resolver may fail with test time deps
48-
catch err
49-
err isa Pkg.Resolve.ResolverError || rethrow()
50-
# If we can't resolve that means this is incompatible by SemVer and this is fine
51-
# It means we marked this as a breaking change, so we don't need to worry about
52-
# Mistakenly introducing a breaking change, as we have intentionally made one
53-
@info "Not compatible with this release. No problem." exception=err
54-
exit(0) # Exit immediately, as a success
55-
end
56-
env:
57-
RETESTITEMS_NWORKERS: 4
58-
RETESTITEMS_NWORKER_THREADS: 2
59-
- uses: julia-actions/julia-processcoverage@v1
60-
- uses: codecov/codecov-action@v5
61-
with:
62-
files: lcov.info
63-
token: ${{ secrets.CODECOV_TOKEN }}
64-
fail_ci_if_error: true
22+
uses: "SciML/.github/.github/workflows/downstream.yml@v1"
23+
with:
24+
julia-version: "1"
25+
os: "ubuntu-latest"
26+
owner: "${{ matrix.package.user }}"
27+
repo: "${{ matrix.package.repo }}"
28+
group: "${{ matrix.package.group }}"
29+
secrets: "inherit"

.github/workflows/FormatCheck.yml

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

1212
jobs:
1313
runic:
14-
runs-on: ubuntu-latest
15-
steps:
16-
- uses: actions/checkout@v4
17-
- uses: julia-actions/setup-julia@v2
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+
secrets: "inherit"

.github/workflows/SpellCheck.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,5 @@ 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@v4
12-
- name: Check spelling
13-
uses: crate-ci/typos@v1.42.0
7+
uses: "SciML/.github/.github/workflows/spellcheck.yml@v1"
8+
secrets: "inherit"

0 commit comments

Comments
 (0)