Skip to content

Commit f7c0479

Browse files
committed
ci: run doctests
1 parent 9a3688a commit f7c0479

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/CI.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,13 @@ jobs:
5252
Pkg.develop(PackageSpec(path=pwd()))
5353
Pkg.instantiate()
5454
- uses: julia-actions/julia-buildpkg@v1
55+
- name: Run doctests
56+
shell: julia --project=docs --color=yes {0}
57+
run: |
58+
using Documenter: DocMeta, doctest
59+
using Primes
60+
DocMeta.setdocmeta!(Primes, :DocTestSetup, :(using Primes); recursive=true)
61+
doctest(Primes)
5562
- uses: julia-actions/julia-docdeploy@v1
5663
env:
5764
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)