Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Run linkcheck weekly and silences SO/SE failures due to blocking GHA #360

Merged
merged 2 commits into from
Feb 23, 2024
Merged
Show file tree
Hide file tree
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
8 changes: 7 additions & 1 deletion .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,28 @@
name: Check

on: # yamllint disable-line rule:truthy
schedule:
- cron: '49 18 * * 5' # 18:49 UTC every Friday, to avoid GHA load spikes

push:
branches:
- master
- main
- '*.*'
- 'staging*'

pull_request:
branches:
- master
- main
- '*.*'
- 'staging*'

workflow_dispatch: # yamllint disable-line rule:empty-values

jobs:
check:
name: Check Docs
name: Check Links

runs-on: ubuntu-latest

Expand Down
12 changes: 8 additions & 4 deletions doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,10 +380,14 @@
# -- Options for Linkcheck --------------------------------------------------

linkcheck_ignore = [
r"https://(www\.)?github\.com/.+/compare/.+#diff-.+", # Virtual ids
r"https://(www\.)?packages\.gentoo\.org/?.*", # Flaky
r"https://(www\.)?software\.opensuse\.org/?.*", # Flaky
r"https://(www\.)?reddit\.com/?.*", # Blocks GitHub
# Virtual fragment ids
r"https://(www\.)?github\.com/.+/compare/.+#diff-.+",
# Flaky
r"https://(www\.)?packages\.gentoo\.org/?.*",
r"https://(www\.)?software\.opensuse\.org/?.*",
# Blocks GitHub Actions
r"https://(www\.)?(\w+\.)?reddit\.com/?.*",
r"https://(www\.)?(\w+\.)?(stackoverflow|stackexchange)\.com/?.*",
]


Expand Down
Loading