Update Project.toml #139
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 | ||