Skip to content

Commit

Permalink
ci/docs: run docs make in parallel
Browse files Browse the repository at this point in the history
  • Loading branch information
Borda committed Oct 10, 2023
1 parent a674826 commit b8b99ba
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/docs-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,23 +72,23 @@ jobs:
if: ${{ matrix.check == 'doctest' }}
working-directory: ./docs
run: |
make doctest
make doctest --debug --jobs $(nproc)
make coverage
- name: Check External Links
if: ${{ matrix.check == 'linkcheck' }}
working-directory: ./docs
env:
SPHINX_MOCK_REQUIREMENTS: 1
run: make --jobs $(nproc) linkcheck SPHINXOPTS="--keep-going"
run: make linkcheck --jobs $(nproc) SPHINXOPTS="--keep-going"

- name: Full build for deployment
if: github.event_name == 'push'
if: github.event_name != 'pull_request'
run: echo "SPHINX_FETCH_ASSETS=1" >> $GITHUB_ENV
- name: Make Documentation
if: ${{ matrix.check == 'html' }}
working-directory: ./docs
run: make html --debug SPHINXOPTS="-W --keep-going"
run: make html --debug --jobs $(nproc) SPHINXOPTS="-W --keep-going"

- name: Upload built docs
if: ${{ matrix.check == 'html' && github.event_name == 'push' }}
Expand Down

0 comments on commit b8b99ba

Please sign in to comment.