-
Notifications
You must be signed in to change notification settings - Fork 18
30 lines (30 loc) · 979 Bytes
/
fix_doctests.yml
File metadata and controls
30 lines (30 loc) · 979 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: fix_doctests
on:
pull_request:
jobs:
doctests:
name: Fix doctests (Julia ${{ matrix.julia-version }} - ${{ github.event_name }})
runs-on: ubuntu-latest
strategy:
matrix:
julia-version:
- '1.10'
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@latest
with:
version: ${{ matrix.julia-version }}
- name: Fix doctests
shell: julia --project=docs/ {0}
run: |
using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()
using Documenter
using ChainRulesTestUtils
doctest(ChainRulesTestUtils, fix=true)
# don't push changes to Manifest in suggestions, as it removes `path=..`
run(`git restore docs/Manifest.toml`)
- uses: reviewdog/action-suggester@v1
if: github.event_name == 'pull_request'
with:
tool_name: Documenter (fix doctests)
fail_on_error: true