Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

various CI improvements #501

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
6 changes: 2 additions & 4 deletions test/hypretests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,5 @@ test_interface(HYPREAlgorithm(HYPRE.PCG(comm)), Pl = HYPRE.BoomerAMG())

# Test MPI execution
mpitestfile = joinpath(@__DIR__, "hypretests_mpi.jl")
mpiexec() do mpi
r = run(ignorestatus(`$(mpi) -n 2 $(Base.julia_cmd()) $(mpitestfile)`))
@test r.exitcode == 0
end
r = run(ignorestatus(`$(mpiexec()) -n 2 $(Base.julia_cmd()) $(mpitestfile)`))
@test r.exitcode == 0
Loading