Skip to content

Commit a7ea8f0

Browse files
committed
add GHA to fix doctests
1 parent 8f01e85 commit a7ea8f0

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

.github/workflows/fix_doctests.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: fix_doctests
2+
on:
3+
pull_request:
4+
jobs:
5+
doctests:
6+
name: Fix doctests (Julia ${{ matrix.julia-version }} - ${{ github.event_name }})
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
julia-version: [1.6]
11+
steps:
12+
- uses: julia-actions/setup-julia@latest
13+
with:
14+
version: ${{ matrix.julia-version }}
15+
- uses: actions/checkout@v1
16+
- name: Fix doctests
17+
shell: julia --project=docs/ {0}
18+
run: |
19+
using Pkg:Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()'
20+
using Documenter
21+
using ChainRulesTestUtils
22+
doctest(ChainRulesTestUtils, fix=true)
23+
- uses: reviewdog/action-suggester@v1
24+
if: github.event_name == 'pull_request'
25+
with:
26+
tool_name: Documenter (fix doctests)
27+
fail_on_error: true

0 commit comments

Comments
 (0)