Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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 }}

Expand Down