Skip to content

Commit 5080dac

Browse files
committed
various CI improvements
1 parent 64a8811 commit 5080dac

File tree

4 files changed

+62
-30
lines changed

4 files changed

+62
-30
lines changed

.github/workflows/CI.yml

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,42 +10,41 @@ on:
1010
- main
1111
paths-ignore:
1212
- 'docs/**'
13+
schedule:
14+
- cron: '20 17 * * 0'
1315
jobs:
1416
test:
15-
runs-on: ubuntu-latest
17+
runs-on: ${{ matrix.os }}
18+
env:
19+
GROUP: ${{ matrix.group }}
1620
strategy:
1721
fail-fast: false
1822
matrix:
1923
group:
2024
- Core
25+
- LinearSolveHYPRE
26+
- LinearSolvePardiso
27+
- LinearSolveBandedMatrices
2128
version:
2229
- '1'
23-
include:
24-
- version: '1'
25-
group: 'LinearSolveHYPRE'
26-
- version: '1'
27-
group: 'LinearSolvePardiso'
28-
- version: '1'
29-
group: 'LinearSolveBandedMatrices'
30+
os:
31+
- ubuntu-latest
32+
- macos-latest
33+
- windows-latest
3034
steps:
3135
- uses: actions/checkout@v4
3236
- uses: julia-actions/setup-julia@v2
3337
with:
3438
version: ${{ matrix.version }}
35-
- uses: actions/cache@v4
36-
env:
37-
cache-name: cache-artifacts
39+
- uses: julia-actions/cache@v1
3840
with:
39-
path: ~/.julia/artifacts
40-
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
41-
restore-keys: |
42-
${{ runner.os }}-test-${{ env.cache-name }}-
43-
${{ runner.os }}-test-
44-
${{ runner.os }}-
41+
token: ${{ secrets.GITHUB_TOKEN }}
4542
- uses: julia-actions/julia-buildpkg@v1
4643
- uses: julia-actions/julia-runtest@v1
4744
env:
4845
GROUP: ${{ matrix.group }}
46+
with:
47+
depwarn: error
4948
- uses: julia-actions/julia-processcoverage@v1
5049
with:
5150
directories: src,ext

.github/workflows/Documentation.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ on:
77
- 'release-'
88
tags: '*'
99
pull_request:
10-
10+
schedule:
11+
- cron: '20 17 * * 0'
1112
jobs:
1213
build:
1314
runs-on: ubuntu-latest

.github/workflows/Downgrade.yml

Lines changed: 19 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,22 +10,37 @@ on:
1010
- main
1111
paths-ignore:
1212
- 'docs/**'
13+
schedule:
14+
- cron: '20 17 * * 0'
1315
jobs:
1416
test:
15-
runs-on: ubuntu-latest
17+
runs-on: ${{ matrix.os }}
18+
env:
19+
GROUP: ${{ matrix.group }}
1620
strategy:
21+
fail-fast: false
1722
matrix:
18-
version: ['1']
1923
group:
2024
- Core
25+
- LinearSolveHYPRE
26+
- LinearSolvePardiso
27+
- LinearSolveBandedMatrices
28+
version:
29+
- '1'
30+
os:
31+
- ubuntu-latest
32+
- macos-latest
33+
- windows-latest
2134
steps:
2235
- uses: actions/checkout@v4
2336
- uses: julia-actions/setup-julia@v2
2437
with:
2538
version: ${{ matrix.version }}
2639
- uses: julia-actions/julia-downgrade-compat@v1
27-
# if: ${{ matrix.version == '1.6' }}
2840
with:
2941
skip: Pkg,TOML
42+
- uses: julia-actions/cache@v1
43+
with:
44+
token: ${{ secrets.GITHUB_TOKEN }}
3045
- uses: julia-actions/julia-buildpkg@v1
31-
- uses: julia-actions/julia-runtest@v1
46+
- uses: julia-actions/julia-runtest@v1

.github/workflows/Downstream.yml

Lines changed: 25 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,58 @@
11
name: IntegrationTest
22
on:
3-
push:
4-
branches: [main]
5-
tags: [v*]
63
pull_request:
4+
branches:
5+
- main
6+
paths-ignore:
7+
- 'docs/**'
8+
push:
9+
branches:
10+
- main
11+
tags:
12+
- v*
13+
paths-ignore:
14+
- 'docs/**'
15+
schedule:
16+
- cron: '20 17 * * 0'
717

818
jobs:
919
test:
10-
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
20+
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.version }}
1121
runs-on: ${{ matrix.os }}
1222
env:
1323
GROUP: ${{ matrix.package.group }}
1424
strategy:
1525
fail-fast: false
1626
matrix:
17-
julia-version: [1]
18-
os: [ubuntu-latest]
1927
package:
2028
- {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceII}
2129
- {user: SciML, repo: ModelingToolkit.jl, group: All}
2230
- {user: SciML, repo: SciMLSensitivity.jl, group: Core1}
2331
- {user: SciML, repo: BoundaryValueDiffEq.jl, group: All}
2432
- {user: SciML, repo: NonlinearSolve.jl, group: All}
33+
version:
34+
- '1'
35+
os:
36+
- ubuntu-latest
37+
- macos-latest
38+
- windows-latest
2539
steps:
2640
- uses: actions/checkout@v4
2741
- uses: julia-actions/setup-julia@v2
2842
with:
29-
version: ${{ matrix.julia-version }}
43+
version: ${{ matrix.version }}
3044
arch: x64
45+
- uses: julia-actions/cache@v1
46+
with:
47+
token: ${{ secrets.GITHUB_TOKEN }}
3148
- uses: julia-actions/julia-buildpkg@latest
3249
- name: Clone Downstream
3350
uses: actions/checkout@v4
3451
with:
3552
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
3653
path: downstream
3754
- name: Load this and run the downstream tests
38-
shell: julia --color=yes --project=downstream {0}
55+
shell: julia --color=yes --depwarn=error --project=downstream {0}
3956
run: |
4057
using Pkg
4158
try

0 commit comments

Comments
 (0)