Skip to content

Commit 451906b

Browse files
chore: upgrade lychee and check recipes folder
1 parent 0ef6b7f commit 451906b

File tree

12 files changed

+31
-1730
lines changed

12 files changed

+31
-1730
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -86,12 +86,19 @@ jobs:
8686
timeout-minutes: 10
8787
runs-on: ubuntu-latest
8888
steps:
89-
- uses: actions/checkout@v4
90-
- uses: lycheeverse/lychee-action@v1.9.3
89+
- uses: actions/checkout@v5
90+
- name: Convert ipynb to markdown
91+
shell: bash
92+
run: |
93+
pip install --quiet nbconvert
94+
# Find all .ipynb files under recipes/ and subfolders and convert them to .md
95+
find recipes -type f -name '*.ipynb' -print0 | while IFS= read -r -d '' file; do
96+
echo "Converting $file"
97+
jupyter nbconvert --to markdown "$file"
98+
done
99+
- uses: lycheeverse/lychee-action@v2
91100
with:
92-
fail: true
93-
debug: false
94-
args: "-qq --no-progress --insecure './**/*.md' './src/kili/**/*.py'"
101+
args: "-qq --no-progress --insecure --accept 200,201,202,203,204,206,207,208,226,301,302,307,308 --max-redirects 5 './**/*.md'"
95102

96103
build-test:
97104
runs-on: ubuntu-latest

.lycheeignore

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
1-
^(http|https)://cloud.kili-technology.com/api/label/v2/graphql$
2-
https://my-custom-url-publicly-accessible/
3-
https://to/second/asset.png
4-
jane.doe@test.com
5-
john@doe.com
6-
john.doe@test.com
7-
https://tagtog.com/JaqenNLP/ApartmentReview
8-
https://tagtog.com/JaqenNLP/ApartmentReviews/-settings
9-
https://platform.openai.com/docs/models/overview
1+
# Ignore localhost and local network addresses
2+
http://localhost:*
3+
http://127.0.0.1:*
4+
5+
# Ignore GraphQL endpoints (they return 400 for GET requests)
6+
http://localhost:4001/api/label/v2/graphql*
7+
https://cloud.kili-technology.com/api/label/v2/graphql*
8+
9+
# Ignore OpenAI documentation (403 errors due to bot protection)
10+
https://help.openai.com/*
11+
https://platform.openai.com/*

0 commit comments

Comments
 (0)