Skip to content

Commit 4d4d1f0

Browse files
authored
ci: reopen doctest (#159)
1 parent 751ec2a commit 4d4d1f0

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

.github/workflows/CI.yml

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,13 @@
11
name: CI
2+
23
on:
34
pull_request:
45
push:
56
branches:
67
- master
78
- main
89
tags: '*'
10+
911
jobs:
1012
test:
1113
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
@@ -17,7 +19,7 @@ jobs:
1719
- '1.0'
1820
- '1.6'
1921
- '1'
20-
# - 'nightly'
22+
# - 'nightly'
2123
os:
2224
- ubuntu-latest
2325
- macOS-latest
@@ -51,14 +53,30 @@ jobs:
5153
name: Documentation
5254
runs-on: ubuntu-latest
5355
permissions:
56+
actions: write # needed to allow julia-actions/cache to proactively delete old caches that it has created
5457
contents: write
58+
statuses: write
5559
steps:
5660
- uses: actions/checkout@v4
5761
- uses: julia-actions/setup-julia@v1
5862
with:
5963
version: '1'
6064
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()
6172
- 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)
6280
- uses: julia-actions/julia-docdeploy@v1
6381
env:
6482
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)