Skip to content

Commit 0f9103f

Browse files
committed
Review
1 parent 50f5435 commit 0f9103f

2 files changed

Lines changed: 12 additions & 51 deletions

File tree

.github/workflows/linkcheck.yml

Lines changed: 0 additions & 51 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
- synchronize # default
1212
- reopened # default
1313
- ready_for_review # used in PRs created from GitHub Actions workflows
14+
schedule:
15+
- cron: '0 0 * * *' # Run the linkcheck daily to surface failures independent of PRs
1416
workflow_call:
1517

1618
concurrency:
@@ -25,10 +27,17 @@ jobs:
2527
if: ${{ github.repository_owner == 'pypa' || github.event_name != 'schedule' }}
2628
runs-on: ubuntu-latest
2729
timeout-minutes: 20
30+
# Don't block PRs on linkcheck unrelated failures.
31+
continue-on-error: ${{ matrix.ignore-errors || false }}
2832
strategy:
33+
fail-fast: false
2934
matrix:
3035
noxenv:
3136
- build
37+
- linkcheck
38+
include:
39+
- noxenv: linkcheck
40+
ignore-errors: true
3241

3342
steps:
3443
- uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
@@ -47,6 +56,9 @@ jobs:
4756
python -m pip install --upgrade nox virtualenv
4857
4958
- name: Nox ${{ matrix.noxenv }}
59+
env:
60+
# Authenticate github.com requests during linkcheck to avoid rate limits.
61+
GITHUB_TOKEN: ${{ matrix.noxenv == 'linkcheck' && github.token || '' }}
5062
run: |
5163
python -m nox -s ${{ matrix.noxenv }}
5264

0 commit comments

Comments
 (0)