|
1 | 1 | # Ultralytics YOLO 🚀, AGPL-3.0 license |
2 | | -# YOLO Continuous Integration (CI) GitHub Actions tests broken link checker |
3 | | -# Accept 429(Instagram, 'too many requests'), 999(LinkedIn, 'unknown status code'), Timeout(Twitter) |
| 2 | +# Continuous Integration (CI) GitHub Actions tests broken link checker using https://github.com/lycheeverse/lychee |
| 3 | +# Ignores the following status codes to reduce false positives: |
| 4 | +# - 403(OpenVINO, 'forbidden') |
| 5 | +# - 429(Instagram, 'too many requests') |
| 6 | +# - 500(Zenodo, 'cached') |
| 7 | +# - 502(Zenodo, 'bad gateway') |
| 8 | +# - 999(LinkedIn, 'unknown status code') |
4 | 9 |
|
5 | 10 | name: Check Broken links |
6 | 11 |
|
|
28 | 33 | timeout_minutes: 5 |
29 | 34 | retry_wait_seconds: 60 |
30 | 35 | max_attempts: 3 |
31 | | - command: lychee --accept 429,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|fonts\.gstatic\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html' |
| 36 | + command: lychee --accept 403,429,500,502,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|fonts\.gstatic\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html' |
32 | 37 |
|
33 | 38 | - name: Test Markdown, HTML, YAML, Python and Notebook links with retry |
34 | 39 | if: github.event_name == 'workflow_dispatch' |
|
37 | 42 | timeout_minutes: 5 |
38 | 43 | retry_wait_seconds: 60 |
39 | 44 | max_attempts: 3 |
40 | | - command: lychee --accept 429,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|url\.com|fonts\.gstatic\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html' './**/*.yml' './**/*.yaml' './**/*.py' './**/*.ipynb' |
| 45 | + command: lychee --accept 429,999 --exclude-loopback --exclude 'https?://(www\.)?(linkedin\.com|twitter\.com|instagram\.com|kaggle\.com|fonts\.gstatic\.com|url\.com)' --exclude-path '**/ci.yaml' --exclude-mail --github-token ${{ secrets.GITHUB_TOKEN }} './**/*.md' './**/*.html' './**/*.yml' './**/*.yaml' './**/*.py' './**/*.ipynb' |
0 commit comments