Skip to content

Update Project.toml #139

Update Project.toml

Update Project.toml #139

Workflow file for this run

name: fix_doctests

Check failure on line 1 in .github/workflows/fix_doctests.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/fix_doctests.yml

Invalid workflow file

(Line: 10, Col: 24): Unexpected value '1.10'
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