File tree Expand file tree Collapse file tree 6 files changed +61
-148
lines changed Expand file tree Collapse file tree 6 files changed +61
-148
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1- name : Documentation
1+ name : " Documentation"
22
33on :
44 push :
55 branches :
66 - main
7- - ' release-'
87 tags : ' *'
98 pull_request :
109
10+ concurrency :
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
13+
1114jobs :
12- build :
13- runs-on : ubuntu-latest
14- steps :
15- - uses : actions/checkout@v4
16- - uses : julia-actions/setup-julia@latest
17- with :
18- version : ' 1'
19- - name : Install dependencies
20- run : julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
21- - name : Build and deploy
22- env :
23- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token
24- DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }} # For authentication with SSH deploy key
25- run : julia --project=docs/ --code-coverage=user docs/make.jl
26- - uses : julia-actions/julia-processcoverage@v1
27- with :
28- directories : src
29- - uses : codecov/codecov-action@v4
30- with :
31- files : lcov.info
32- token : ${{ secrets.CODECOV_TOKEN }}
33- fail_ci_if_error : true
15+ build-and-deploy-docs :
16+ name : " Documentation"
17+ uses : " SciML/.github/.github/workflows/documentation.yml@v1"
18+ secrets : " inherit"
Original file line number Diff line number Diff line change 1- name : format-check
1+ name : " Format Check "
22
33on :
44 push :
55 branches :
66 - ' main'
7- - ' release-'
87 tags : ' *'
98 pull_request :
109
1110jobs :
12- build :
13- runs-on : ${{ matrix.os }}
14- strategy :
15- matrix :
16- julia-version : [1]
17- julia-arch : [x86]
18- os : [ubuntu-latest]
19- steps :
20- - uses : julia-actions/setup-julia@latest
21- with :
22- version : ${{ matrix.julia-version }}
23-
24- - uses : actions/checkout@v4
25- - name : Install JuliaFormatter and format
26- # This will use the latest version by default but you can set the version like so:
27- #
28- # julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))'
29- run : |
30- julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
31- julia -e 'using JuliaFormatter; format(".", verbose=true)'
32- - name : Format check
33- run : |
34- julia -e '
35- out = Cmd(`git diff --name-only`) |> read |> String
36- if out == ""
37- exit(0)
38- else
39- @error "Some files have not been formatted !!!"
40- write(stdout, out)
41- exit(1)
42- end'
11+ format-check :
12+ name : " Format Check"
13+ uses : " SciML/.github/.github/workflows/format-suggestions-on-pr.yml@v1"
Original file line number Diff line number Diff line change 1- name : Invalidations
1+ name : " Invalidations"
22
33on :
44 pull_request :
@@ -10,31 +10,6 @@ concurrency:
1010 cancel-in-progress : true
1111
1212jobs :
13- evaluate :
14- # Only run on PRs to the default branch.
15- # In the PR trigger above branches can be specified only explicitly whereas this check should work for master, main, or any other default branch
16- if : github.base_ref == github.event.repository.default_branch
17- runs-on : ubuntu-latest
18- steps :
19- - uses : julia-actions/setup-julia@v2
20- with :
21- version : ' 1'
22- - uses : actions/checkout@v4
23- - uses : julia-actions/julia-buildpkg@v1
24- - uses : julia-actions/julia-invalidations@v1
25- id : invs_pr
26-
27- - uses : actions/checkout@v4
28- with :
29- ref : ${{ github.event.repository.default_branch }}
30- - uses : julia-actions/julia-buildpkg@v1
31- - uses : julia-actions/julia-invalidations@v1
32- id : invs_default
33-
34- - name : Report invalidation counts
35- run : |
36- echo "Invalidations on default branch: ${{ steps.invs_default.outputs.total }} (${{ steps.invs_default.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
37- echo "This branch: ${{ steps.invs_pr.outputs.total }} (${{ steps.invs_pr.outputs.deps }} via deps)" >> $GITHUB_STEP_SUMMARY
38- - name : Check if the PR does increase number of invalidations
39- if : steps.invs_pr.outputs.total > steps.invs_default.outputs.total
40- run : exit 1
13+ evaluate-invalidations :
14+ name : " Evaluate Invalidations"
15+ uses : " SciML/.github/.github/workflows/invalidations.yml@v1"
Original file line number Diff line number Diff line change 1+ name : " Tests"
2+
3+ on :
4+ pull_request :
5+ branches :
6+ - main
7+ - ' release-'
8+ paths-ignore :
9+ - ' docs/**'
10+ push :
11+ branches :
12+ - main
13+ paths-ignore :
14+ - ' docs/**'
15+
16+ concurrency :
17+ group : ${{ github.workflow }}-${{ github.ref }}
18+ cancel-in-progress : ${{ github.ref_name != github.event.repository.default_branch || github.ref != 'refs/tags/v*' }}
19+
20+ jobs :
21+ tests :
22+ name : " Tests"
23+ strategy :
24+ fail-fast : false
25+ matrix :
26+ version :
27+ - " 1"
28+ - " lts"
29+ group :
30+ - " Core"
31+ - " LinearSolveHYPRE"
32+ - " LinearSolvePardiso"
33+ - " LinearSolveBandedMatrices"
34+ uses : " SciML/.github/.github/workflows/tests.yml@v1"
35+ with :
36+ group : " ${{ matrix.group }}"
37+ julia-version : " ${{ matrix.version }}"
38+ secrets : " inherit"
Original file line number Diff line number Diff line change @@ -57,21 +57,21 @@ prob = LinearProblem(copy(A), copy(b1))
5757
5858
5959linsolve = init (prob, UMFPACKFactorization ())
60- sol11 = solve (linsolve)
60+ sol11 = solve! (linsolve)
6161linsolve = LinearSolve. set_b (sol11. cache, copy (b2))
62- sol12 = solve (linsolve)
62+ sol12 = solve! (linsolve)
6363linsolve = LinearSolve. set_A (sol12. cache, copy (A2))
64- sol13 = solve (linsolve)
64+ sol13 = solve! (linsolve)
6565
6666
6767
6868for alg in algs
6969 linsolve = init (prob, alg)
70- sol31 = solve (linsolve)
70+ sol31 = solve! (linsolve)
7171 linsolve = LinearSolve. set_b (sol31. cache, copy (b2))
72- sol32 = solve (linsolve)
72+ sol32 = solve! (linsolve)
7373 linsolve = LinearSolve. set_A (sol32. cache, copy (A2))
74- sol33 = solve (linsolve)
74+ sol33 = solve! (linsolve)
7575 @test sol11. u ≈ sol31. u
7676 @test sol12. u ≈ sol32. u
7777 @test sol13. u ≈ sol33. u
You can’t perform that action at this time.
0 commit comments