refactor!: move preconditioners inside linear solvers #250
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI (NonlinearSolve) | |
on: | |
pull_request: | |
branches: | |
- master | |
paths: | |
- "src/**" | |
- "ext/**" | |
- "test/**" | |
- "Project.toml" | |
- ".github/workflows/CI_NonlinearSolve.yml" | |
- "lib/SciMLNonlinearOperators/**" | |
- "lib/BracketingNonlinearSolve/**" | |
- "lib/NonlinearSolveBase/**" | |
- "lib/SimpleNonlinearSolve/**" | |
- "lib/NonlinearSolveFirstOrder/**" | |
- "lib/NonlinearSolveSpectralMethods/**" | |
- "lib/NonlinearSolveQuasiNewton/**" | |
push: | |
branches: | |
- master | |
concurrency: | |
# Skip intermediate builds: always. | |
# Cancel intermediate builds: only if it is a pull request build. | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} | |
jobs: | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
group: | |
- core | |
- downstream | |
- wrappers | |
version: | |
- "1.10" | |
- "1" | |
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 | |
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 }}- | |
- name: "Install Dependencies and Run Tests" | |
run: | | |
import Pkg | |
Pkg.Registry.update() | |
# Install packages present in subdirectories | |
dev_pks = Pkg.PackageSpec[] | |
for path in ("lib/SciMLJacobianOperators", "lib/BracketingNonlinearSolve", "lib/NonlinearSolveBase", "lib/SimpleNonlinearSolve", "lib/NonlinearSolveFirstOrder", "lib/NonlinearSolveSpectralMethods", "lib/NonlinearSolveQuasiNewton") | |
push!(dev_pks, Pkg.PackageSpec(; path)) | |
end | |
Pkg.develop(dev_pks) | |
Pkg.instantiate() | |
Pkg.test(; coverage="user") | |
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0} | |
env: | |
GROUP: ${{ matrix.group }} | |
- uses: julia-actions/julia-processcoverage@v1 | |
with: | |
directories: src,ext,lib/SciMLJacobianOperators/src,lib/BracketingNonlinearSolve/src,lib/NonlinearSolveBase/src,lib/NonlinearSolveBase/ext,lib/SimpleNonlinearSolve/src,lib/NonlinearSolveFirstOrder/src,lib/NonlinearSolveSpectralMethods/src,lib/NonlinearSolveQuasiNewton/src | |
- uses: codecov/codecov-action@v4 | |
with: | |
file: lcov.info | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
fail_ci_if_error: true | |
downgrade: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
version: | |
- "1.10" | |
group: | |
- core | |
- downstream | |
- wrappers | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: julia-actions/setup-julia@v2 | |
with: | |
version: ${{ matrix.version }} | |
- uses: julia-actions/julia-downgrade-compat@v1 | |
with: | |
skip: SciMLJacobianOperators, BracketingNonlinearSolve, NonlinearSolveBase, SimpleNonlinearSolve, NonlinearSolveFirstOrder, NonlinearSolveSpectralMethods, NonlinearSolveQuasiNewton | |
- name: "Install Dependencies and Run Tests" | |
run: | | |
import Pkg | |
Pkg.Registry.update() | |
# Install packages present in subdirectories | |
dev_pks = Pkg.PackageSpec[] | |
for path in ("lib/SciMLJacobianOperators", "lib/BracketingNonlinearSolve", "lib/NonlinearSolveBase", "lib/SimpleNonlinearSolve", "lib/NonlinearSolveFirstOrder", "lib/NonlinearSolveSpectralMethods", "lib/NonlinearSolveQuasiNewton") | |
push!(dev_pks, Pkg.PackageSpec(; path)) | |
end | |
Pkg.develop(dev_pks) | |
Pkg.instantiate() | |
Pkg.test(; coverage="user") | |
shell: julia --color=yes --code-coverage=user --depwarn=yes --project=. {0} | |
env: | |
GROUP: ${{ matrix.group }} | |
- uses: julia-actions/julia-processcoverage@v1 | |
with: | |
directories: src,ext,lib/SciMLJacobianOperators/src,lib/BracketingNonlinearSolve/src,lib/NonlinearSolveBase/src,lib/NonlinearSolveBase/ext,lib/SimpleNonlinearSolve/src,lib/NonlinearSolveFirstOrder/src,lib/NonlinearSolveSpectralMethods/src,lib/NonlinearSolveQuasiNewton/src | |
- uses: codecov/codecov-action@v4 | |
with: | |
file: lcov.info | |
token: ${{ secrets.CODECOV_TOKEN }} | |
verbose: true | |
fail_ci_if_error: true |