Skip to content

Commit b339e6d

Browse files
Merge pull request #597 from ChrisRackauckas-Claude/centralize-ci
Centralize CI on SciML reusable workflows
2 parents 2df4adc + fe47203 commit b339e6d

7 files changed

Lines changed: 28 additions & 51 deletions

File tree

.github/dependabot.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@ 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
- "/"
1411
- "/docs"
15-
- "/test"
12+
- "/test/gpu"
1613
schedule:
1714
interval: "daily"
1815
groups:

.github/workflows/Documentation.yml

Lines changed: 3 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,6 @@ on:
99

1010
jobs:
1111
build:
12-
runs-on: ubuntu-latest
13-
steps:
14-
- uses: actions/checkout@v6
15-
- uses: julia-actions/setup-julia@latest
16-
with:
17-
version: '1'
18-
- name: Install dependencies
19-
run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20-
- name: Build and deploy
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
23-
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
24-
GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988
25-
run: julia --project=docs/ --code-coverage=user docs/make.jl
26-
- uses: julia-actions/julia-processcoverage@v1
27-
- uses: codecov/codecov-action@v6
28-
with:
29-
file: lcov.info
30-
token: ${{ secrets.CODECOV_TOKEN }}
31-
fail_ci_if_error: true
12+
name: "Documentation"
13+
uses: "SciML/.github/.github/workflows/documentation.yml@v1"
14+
secrets: "inherit"

.github/workflows/Downgrade.yml

Lines changed: 8 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -11,22 +11,12 @@ on:
1111
paths-ignore:
1212
- 'docs/**'
1313
jobs:
14-
test:
14+
downgrade:
1515
if: false # Disabled: waiting on OrdinaryDiffEq 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@v6
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+
name: "Downgrade"
17+
uses: "SciML/.github/.github/workflows/downgrade.yml@v1"
18+
with:
19+
julia-version: "1.10"
20+
skip: "Pkg,TOML"
21+
allow-reresolve: false
22+
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"

_typos.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[default.extend-words]
2+
# Surname of an author cited in the SortingDirect references (McCollum et al.)
3+
Collum = "Collum"
4+
# Name of the LambaEM integrator from OrdinaryDiffEq
5+
Lamba = "Lamba"
6+
# Internal function name resetted_jump_problem
7+
resetted = "resetted"
8+
# "IMA J Numer Anal" journal abbreviation in a citation
9+
Numer = "Numer"
10+
# setp from SymbolicIndexingInterface
11+
setp = "setp"

docs/old/getting_started.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ jump = ConstantRateJump(rate, affect!)
9696
There are many types of jumps. Some of them allow for variable rates. You can
9797
read about [different jump types in this page](@ref jump_types).
9898

99-
Once the jump is defined, we initialize the `JumpProblem`. _Aggegators_ are
99+
Once the jump is defined, we initialize the `JumpProblem`. _Aggregators_ are
100100
algorithms that determines jump times. We call them _aggregators_ because they
101101
aggregate all jump callbacks into a single callback. Alternatively, we can think
102102
of aggregators as the jump simulation algorithms. In this case we use the

test/save_positions.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ let
1010

1111
dprob = DiscreteProblem(u0, tspan)
1212
# set the rate to 0, so that no jump ever occurs; but urate is positive so
13-
# Coevolve will consider many candidates before the end of the simmulation.
13+
# Coevolve will consider many candidates before the end of the simulation.
1414
# None of these points should be saved.
1515
jump = VariableRateJump((u, p, t) -> 0, (integrator) -> integrator.u[1] += 1;
1616
urate = (u, p, t) -> 1.0, rateinterval = (u, p, t) -> 5.0)

0 commit comments

Comments
 (0)