Skip to content

Commit

Permalink
various CI improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
ArnoStrouwen committed May 13, 2024
1 parent 64a8811 commit 5080dac
Show file tree
Hide file tree
Showing 4 changed files with 62 additions and 30 deletions.
33 changes: 16 additions & 17 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,42 +10,41 @@ on:
- main
paths-ignore:
- 'docs/**'
schedule:
- cron: '20 17 * * 0'
jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
env:
GROUP: ${{ matrix.group }}
strategy:
fail-fast: false
matrix:
group:
- Core
- LinearSolveHYPRE
- LinearSolvePardiso
- LinearSolveBandedMatrices
version:
- '1'
include:
- version: '1'
group: 'LinearSolveHYPRE'
- version: '1'
group: 'LinearSolvePardiso'
- version: '1'
group: 'LinearSolveBandedMatrices'
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- uses: actions/cache@v4
env:
cache-name: cache-artifacts
- uses: julia-actions/cache@v1
with:
path: ~/.julia/artifacts
key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
restore-keys: |
${{ runner.os }}-test-${{ env.cache-name }}-
${{ runner.os }}-test-
${{ runner.os }}-
token: ${{ secrets.GITHUB_TOKEN }}
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
env:
GROUP: ${{ matrix.group }}
with:
depwarn: error
- uses: julia-actions/julia-processcoverage@v1
with:
directories: src,ext
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ on:
- 'release-'
tags: '*'
pull_request:

schedule:
- cron: '20 17 * * 0'
jobs:
build:
runs-on: ubuntu-latest
Expand Down
23 changes: 19 additions & 4 deletions .github/workflows/Downgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,22 +10,37 @@ on:
- main
paths-ignore:
- 'docs/**'
schedule:
- cron: '20 17 * * 0'
jobs:
test:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
env:
GROUP: ${{ matrix.group }}
strategy:
fail-fast: false
matrix:
version: ['1']
group:
- Core
- LinearSolveHYPRE
- LinearSolvePardiso
- LinearSolveBandedMatrices
version:
- '1'
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
- uses: julia-actions/julia-downgrade-compat@v1
# if: ${{ matrix.version == '1.6' }}
with:
skip: Pkg,TOML
- uses: julia-actions/cache@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-runtest@v1
33 changes: 25 additions & 8 deletions .github/workflows/Downstream.yml
Original file line number Diff line number Diff line change
@@ -1,41 +1,58 @@
name: IntegrationTest
on:
push:
branches: [main]
tags: [v*]
pull_request:
branches:
- main
paths-ignore:
- 'docs/**'
push:
branches:
- main
tags:
- v*
paths-ignore:
- 'docs/**'
schedule:
- cron: '20 17 * * 0'

jobs:
test:
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.julia-version }}
name: ${{ matrix.package.repo }}/${{ matrix.package.group }}/${{ matrix.version }}
runs-on: ${{ matrix.os }}
env:
GROUP: ${{ matrix.package.group }}
strategy:
fail-fast: false
matrix:
julia-version: [1]
os: [ubuntu-latest]
package:
- {user: SciML, repo: OrdinaryDiffEq.jl, group: InterfaceII}
- {user: SciML, repo: ModelingToolkit.jl, group: All}
- {user: SciML, repo: SciMLSensitivity.jl, group: Core1}
- {user: SciML, repo: BoundaryValueDiffEq.jl, group: All}
- {user: SciML, repo: NonlinearSolve.jl, group: All}
version:
- '1'
os:
- ubuntu-latest
- macos-latest
- windows-latest
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.julia-version }}
version: ${{ matrix.version }}
arch: x64
- uses: julia-actions/cache@v1
with:
token: ${{ secrets.GITHUB_TOKEN }}
- uses: julia-actions/julia-buildpkg@latest
- name: Clone Downstream
uses: actions/checkout@v4
with:
repository: ${{ matrix.package.user }}/${{ matrix.package.repo }}
path: downstream
- name: Load this and run the downstream tests
shell: julia --color=yes --project=downstream {0}
shell: julia --color=yes --depwarn=error --project=downstream {0}
run: |
using Pkg
try
Expand Down

0 comments on commit 5080dac

Please sign in to comment.