1
- name : Documentation
2
-
1
+ env :
2
+ JULIA_NUM_THREADS : 2
3
+ name : CI
3
4
on :
5
+ pull_request :
6
+ branches :
7
+ - master
4
8
push :
5
9
branches :
6
10
- master
7
11
tags : ' *'
8
- pull_request :
9
-
10
12
jobs :
11
- build :
13
+ test :
14
+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
15
+ runs-on : ${{ matrix.os }}
16
+ strategy :
17
+ fail-fast : false
18
+ matrix :
19
+ version :
20
+ - ' 1.6' # Replace this with the minimum Julia version that your package supports. E.g. if your package requires Julia 1.5 or higher, change this to '1.5'.
21
+ - ' 1' # Leave this line unchanged. '1' will automatically expand to the latest stable 1.x release of Julia.
22
+ - ' nightly'
23
+ os :
24
+ - ubuntu-latest
25
+ arch :
26
+ - x64
27
+ steps :
28
+ - uses : actions/checkout@v2
29
+ - uses : julia-actions/setup-julia@v1
30
+ with :
31
+ version : ${{ matrix.version }}
32
+ arch : ${{ matrix.arch }}
33
+ - uses : actions/cache@v1
34
+ env :
35
+ cache-name : cache-artifacts
36
+ with :
37
+ path : ~/.julia/artifacts
38
+ key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
39
+ restore-keys : |
40
+ ${{ runner.os }}-test-${{ env.cache-name }}-
41
+ ${{ runner.os }}-test-
42
+ ${{ runner.os }}-
43
+ - uses : julia-actions/julia-buildpkg@v1
44
+ - uses : julia-actions/julia-runtest@v1
45
+ - uses : julia-actions/julia-processcoverage@v1
46
+ - uses : codecov/codecov-action@v1
47
+ with :
48
+ file : lcov.info
49
+ docs :
50
+ name : Documentation
12
51
runs-on : ubuntu-latest
13
52
steps :
14
53
- uses : actions/checkout@v2
15
- - uses : julia-actions/setup-julia@latest
54
+ - uses : julia-actions/setup-julia@v1
16
55
with :
17
- version : ' 1.6'
18
- - name : Install dependencies
19
- run : julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20
- - name : Build and deploy
56
+ version : ' 1'
57
+ - run : |
58
+ julia --project=docs -e '
59
+ using Pkg
60
+ Pkg.develop(PackageSpec(path=pwd()))
61
+ Pkg.instantiate()'
62
+ - run : |
63
+ julia --project=docs -e '
64
+ using Documenter: doctest
65
+ using SuiteSparseGraphBLAS
66
+ doctest(SuiteSparseGraphBLAS)' # change SuiteSparseGraphBLAS to the name of your package
67
+ - run : julia --project=docs docs/make.jl
21
68
env :
22
- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token
23
- run : julia --project=docs/ docs/make.jl
69
+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
70
+ DOCUMENTER_KEY : ${{ secrets.DOCUMENTER_KEY }}
0 commit comments