diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 8d230d6ba..81ea4f054 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -25,11 +25,18 @@ jobs: if: ${{ github.repository_owner == 'pypa' || github.event_name != 'schedule' }} runs-on: ubuntu-latest timeout-minutes: 20 + continue-on-error: >- + ${{ fromJSON(matrix.continue-on-error) }} strategy: matrix: noxenv: - build - - linkcheck + continue-on-error: + - false + include: + - noxenv: linkcheck + continue-on-error: >- # Don't block PRs on linkcheck unrelated failures + ${{ toJSON(github.event_name == 'pull_request') }} steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 @@ -50,7 +57,7 @@ jobs: - name: Nox ${{ matrix.noxenv }} env: # Authenticate github.com requests during linkcheck to avoid rate limits. - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ matrix.noxenv == 'linkcheck' && github.token || '' }} run: | python -m nox -s ${{ matrix.noxenv }}