File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 1
1
name : CI
2
+
2
3
on :
3
4
pull_request :
4
5
push :
5
6
branches :
6
7
- master
7
8
- main
8
9
tags : ' *'
10
+
9
11
jobs :
10
12
test :
11
13
name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
17
19
- ' 1.0'
18
20
- ' 1.6'
19
21
- ' 1'
20
- # - 'nightly'
22
+ # - 'nightly'
21
23
os :
22
24
- ubuntu-latest
23
25
- macOS-latest
@@ -51,14 +53,30 @@ jobs:
51
53
name : Documentation
52
54
runs-on : ubuntu-latest
53
55
permissions :
56
+ actions : write # needed to allow julia-actions/cache to proactively delete old caches that it has created
54
57
contents : write
58
+ statuses : write
55
59
steps :
56
60
- uses : actions/checkout@v4
57
61
- uses : julia-actions/setup-julia@v1
58
62
with :
59
63
version : ' 1'
60
64
show-versioninfo : true
65
+ - uses : julia-actions/cache@v1
66
+ - name : Configure doc environment
67
+ shell : julia --project=docs --color=yes {0}
68
+ run : |
69
+ using Pkg
70
+ Pkg.develop(PackageSpec(path=pwd()))
71
+ Pkg.instantiate()
61
72
- uses : julia-actions/julia-buildpkg@v1
73
+ - name : Run doctests
74
+ shell : julia --project=docs --color=yes {0}
75
+ run : |
76
+ using Documenter: DocMeta, doctest
77
+ using Combinatorics
78
+ DocMeta.setdocmeta!(Combinatorics, :DocTestSetup, :(using Combinatorics); recursive=true)
79
+ doctest(Combinatorics)
62
80
- uses : julia-actions/julia-docdeploy@v1
63
81
env :
64
82
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
You can’t perform that action at this time.
0 commit comments