Skip to content

Commit 7e3ad96

Browse files
authored
Merge branch 'main' into clarify-environment-marker-comparisons
2 parents e4b2509 + ca5efa6 commit 7e3ad96

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,18 @@ jobs:
2525
if: ${{ github.repository_owner == 'pypa' || github.event_name != 'schedule' }}
2626
runs-on: ubuntu-latest
2727
timeout-minutes: 20
28+
continue-on-error: >-
29+
${{ fromJSON(matrix.continue-on-error) }}
2830
strategy:
2931
matrix:
3032
noxenv:
3133
- build
32-
- linkcheck
34+
continue-on-error:
35+
- false
36+
include:
37+
- noxenv: linkcheck
38+
continue-on-error: >- # Don't block PRs on linkcheck unrelated failures
39+
${{ toJSON(github.event_name == 'pull_request') }}
3340
3441
steps:
3542
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -50,7 +57,7 @@ jobs:
5057
- name: Nox ${{ matrix.noxenv }}
5158
env:
5259
# Authenticate github.com requests during linkcheck to avoid rate limits.
53-
GITHUB_TOKEN: ${{ github.token }}
60+
GITHUB_TOKEN: ${{ matrix.noxenv == 'linkcheck' && github.token || '' }}
5461
run: |
5562
python -m nox -s ${{ matrix.noxenv }}
5663

0 commit comments

Comments
 (0)