88 - uses : actions/checkout@v4
99 - uses : actions/setup-python@v5
1010 with :
11- python-version : 3.9
11+ python-version : " 3.10 "
1212 cache : " pip"
1313 - uses : pre-commit/action@v3.0.1
1414
1717 name : Pylint test
1818 strategy :
1919 matrix :
20- python-version : ["3.9 ", "3.12"]
20+ python-version : ["3.10 ", "3.12"]
2121 steps :
2222 - uses : actions/checkout@v4
2323 - name : Set up Python ${{ matrix.python-version }}
3737 runs-on : ubuntu-latest
3838 strategy :
3939 matrix :
40- version : ["3.9 ", "3.12"]
40+ version : ["3.10 ", "3.12"]
4141 steps :
4242 - uses : actions/checkout@v4
4343 - uses : actions/setup-python@v5
@@ -58,11 +58,11 @@ jobs:
5858 matrix :
5959 include :
6060 - os : ubuntu-latest
61- python-version : 3.9
61+ python-version : " 3.10 "
6262 - os : windows-latest
63- python-version : 3.9
63+ python-version : " 3.10 "
6464 - os : ubuntu-latest
65- python-version : 3.12
65+ python-version : " 3.12"
6666 runs-on : ${{ matrix.os }}
6767 steps :
6868 - name : Checkout repo
@@ -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
@@ -101,7 +108,7 @@ jobs:
101108 - name : Set up Python
102109 uses : actions/setup-python@v5
103110 with :
104- python-version : 3.9
111+ python-version : " 3.10 "
105112 cache : " pip"
106113
107114 - name : Install dependencies
@@ -131,7 +138,7 @@ jobs:
131138 - name : Set up Python
132139 uses : actions/setup-python@v5
133140 with :
134- python-version : 3.9
141+ python-version : " 3.10 "
135142 cache : " pip"
136143
137144 - name : Install dependencies
0 commit comments