Skip to content

Commit 7d60138

Browse files
authored
Run doctests on Julia nightly
1 parent 5823957 commit 7d60138

File tree

1 file changed

+22
-5
lines changed

1 file changed

+22
-5
lines changed

.github/workflows/ci.yml

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,29 @@ jobs:
6262
using Pkg
6363
Pkg.develop(PackageSpec(path=pwd()))
6464
Pkg.instantiate()'
65-
# - run: |
66-
# julia --project=docs -e '
67-
# using Documenter: doctest
68-
# using LoopVectorization
69-
# doctest(LoopVectorization)'
7065
- run: julia --project=docs docs/make.jl
7166
env:
7267
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7368
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
69+
doctests:
70+
name: Doctests
71+
runs-on: ubuntu-latest
72+
steps:
73+
- uses: actions/checkout@v2
74+
- uses: julia-actions/setup-julia@v1
75+
with:
76+
version: 'nightly'
77+
- run: julia --color=yes -e 'using Pkg; VERSION >= v"1.5-" && !isdir(joinpath(DEPOT_PATH[1], "registries", "General")) && Pkg.Registry.add("General")'
78+
shell: bash
79+
env:
80+
JULIA_PKG_SERVER: ""
81+
- run: |
82+
julia --project=docs -e '
83+
using Pkg
84+
Pkg.develop(PackageSpec(path=pwd()))
85+
Pkg.instantiate()'
86+
- run: |
87+
julia --project=docs -e '
88+
using Documenter: doctest
89+
using LoopVectorization
90+
doctest(LoopVectorization)'

0 commit comments

Comments
 (0)