Skip to content

Commit d1b684c

Browse files
authored
Fix test-readme-links flakiness (#475)
Fix flakiness by verifying that the notebook exists at the referenced path in the repository, rather than making a request to nbviewer, which fails for rate limiting.
1 parent 02a8436 commit d1b684c

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.github/link-check-config.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"retryCount": 3,
3+
"fallbackRetryDelay": "120s",
4+
"replacementPatterns": [
5+
{
6+
"pattern": "^https://nbviewer.org/github/",
7+
"replacement": "https://github.com/"
8+
}
9+
]
10+
}

.github/workflows/test-readme-links.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ jobs:
2424
with:
2525
folder-path: .
2626
max-depth: 1
27+
use-verbose-mode: yes
28+
config-file: .github/link-check-config.json

0 commit comments

Comments
 (0)