-
Notifications
You must be signed in to change notification settings - Fork 16.3k
44 lines (38 loc) · 1.37 KB
/
Copy pathcheck-links.yml
File metadata and controls
44 lines (38 loc) · 1.37 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
name: Check hyperlinks
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Check links
env:
CHECK_LINKS_TIMEOUT: "10"
run: |
uv run --script .github/scripts/check_links.py ./ \
--check-links-ignore "https://platform.openai.com/*" \
--check-links-ignore "https://openai.com/*" \
--check-links-ignore "https://arena.lmsys.org" \
--check-links-ignore "https?://localhost(:\\d+)?/.*" \
--check-links-ignore "https?://127[.]0[.]0[.]1(:\\d+)?/.*" \
--check-links-ignore "https://mng\\.bz/.*" \
--check-links-ignore "https://github\\.com/.*" \
--check-links-ignore "https://unsloth.ai/blog/gradient" \
--check-links-ignore "https://www.reddit.com/r/*" \
--check-links-ignore "https://code.visualstudio.com/*" \
--check-links-ignore "https://arxiv.org/*" \
--check-links-ignore "https://ai.stanford.edu/~amaas/data/sentiment/" \
--check-links-ignore "https://x.com/*" \
--check-links-ignore "https://scholar.google.com/*"