11name : CI
22on :
3- - push
4- - pull_request
3+ push :
4+ branches :
5+ - main
6+ tags : ' *'
7+ pull_request :
8+ concurrency :
9+ # Skip intermediate builds: always.
10+ # Cancel intermediate builds: only if it is a pull request build.
11+ group : ${{ github.workflow }}-${{ github.ref }}
12+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
513jobs :
614 test :
715 name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
1018 fail-fast : false
1119 matrix :
1220 version :
13- - ' 1.6 '
14- - ' 1' # Latest 1.X
21+ - ' 1.9 '
22+ - ' 1'
1523 os :
1624 - ubuntu-latest
1725 arch :
@@ -26,22 +34,51 @@ jobs:
2634 - uses : julia-actions/julia-buildpkg@v1
2735 - uses : julia-actions/julia-runtest@v1
2836 - uses : julia-actions/julia-processcoverage@v1
29- - uses : codecov/codecov-action@v1
37+ - uses : codecov/codecov-action@v2
3038 with :
31- file : lcov.info
39+ files : lcov.info
40+ PartitionedSolvers :
41+ name : PartitionedSolvers / Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
42+ runs-on : ${{ matrix.os }}
43+ strategy :
44+ fail-fast : false
45+ matrix :
46+ version :
47+ - ' 1'
48+ os :
49+ - ubuntu-latest
50+ arch :
51+ - x64
52+ steps :
53+ - uses : actions/checkout@v2
54+ - uses : julia-actions/setup-julia@v1
55+ with :
56+ version : ${{ matrix.version }}
57+ arch : ${{ matrix.arch }}
58+ - uses : julia-actions/cache@v1
59+ - uses : julia-actions/julia-buildpkg@v1
60+ - run : |
61+ julia --project=extensions/PartitionedSolvers -e '
62+ using Pkg
63+ Pkg.develop(path=".")
64+ Pkg.test("PartitionedSolvers")'
3265 docs :
3366 name : Documentation
3467 runs-on : ubuntu-latest
68+ permissions :
69+ contents : write
3570 steps :
3671 - uses : actions/checkout@v2
3772 - uses : julia-actions/setup-julia@v1
3873 with :
3974 version : ' 1'
40- - uses : julia-actions/cache@v1
41- - name : Install dependencies
42- run : julia --project=docs -e 'using Pkg; Pkg.instantiate()'
43- - name : Build and deploy
75+ - uses : julia-actions/julia-buildpkg@v1
76+ - uses : julia-actions/julia-docdeploy@v1
4477 env :
4578 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
46- DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
47- run : julia --project=docs docs/make.jl
79+ - run : |
80+ julia --project=docs -e '
81+ using Documenter: DocMeta, doctest
82+ using PartitionedArrays
83+ DocMeta.setdocmeta!(PartitionedArrays, :DocTestSetup, :(using PartitionedArrays); recursive=true)
84+ doctest(PartitionedArrays)'
0 commit comments