From eea6f9f77a31914bba1e15559291e685f1c1b076 Mon Sep 17 00:00:00 2001 From: John SJ Anderson Date: Tue, 3 Sep 2024 15:17:01 -0700 Subject: [PATCH] Split `make linkcheck` out into a distinct job [#106] --- .github/workflows/docs-ci.yaml | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/.github/workflows/docs-ci.yaml b/.github/workflows/docs-ci.yaml index 89355ef..8a861cd 100644 --- a/.github/workflows/docs-ci.yaml +++ b/.github/workflows/docs-ci.yaml @@ -68,9 +68,6 @@ jobs: - run: make ${{ inputs.make-target }} working-directory: ${{ inputs.docs-directory }} - - run: make linkcheck - working-directory: ${{ inputs.docs-directory }} - build-pip: if: inputs.pip-install-target != '' runs-on: ubuntu-latest @@ -86,5 +83,17 @@ jobs: - run: make ${{ inputs.make-target }} working-directory: ${{ inputs.docs-directory }} - - run: make linkcheck + linkcheck: + if: inputs.pip-install-target != '' + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + with: + repository: ${{ inputs.repo }} + + - run: pip install '${{ inputs.pip-install-target }}' + + - id: linkcheck + run: make linkcheck working-directory: ${{ inputs.docs-directory }} + continue-on-error: true