66 runs-on : ubuntu-latest
77 steps :
88 - uses : actions/checkout@v4
9- - uses : actions/setup-python@v5
9+ - uses : actions/setup-python@v6
1010 with :
11- python-version : 3.9
11+ python-version : " 3.10 "
1212 cache : " pip"
1313 - uses : pre-commit/action@v3.0.1
1414
1515 pylint :
1616 runs-on : ubuntu-latest
1717 name : Pylint test
1818 strategy :
19+ fail-fast : false
1920 matrix :
20- python-version : ["3.9 ", "3.12"]
21+ python-version : ["3.10 ", "3.12", "3.13 "]
2122 steps :
2223 - uses : actions/checkout@v4
2324 - name : Set up Python ${{ matrix.python-version }}
24- uses : actions/setup-python@v5
25+ uses : actions/setup-python@v6
2526 with :
2627 python-version : ${{ matrix.python-version }}
2728 cache : " pip"
@@ -36,11 +37,12 @@ jobs:
3637 pyright :
3738 runs-on : ubuntu-latest
3839 strategy :
40+ fail-fast : false
3941 matrix :
40- version : ["3.9 ", "3.12"]
42+ version : ["3.10 ", "3.12", "3.13 "]
4143 steps :
4244 - uses : actions/checkout@v4
43- - uses : actions/setup-python@v5
45+ - uses : actions/setup-python@v6
4446 with :
4547 python-version : ${{ matrix.version }}
4648 cache : " pip"
@@ -49,27 +51,30 @@ jobs:
4951 python -m pip install --upgrade pip
5052 pip install -e ".[dev]"
5153 - name : Run pyright
52- run : pyright .
54+ run : pyright src/kili
5355
5456 unit-integration-test :
5557 timeout-minutes : 15
5658 name : Unit and integration tests
5759 strategy :
60+ fail-fast : false
5861 matrix :
5962 include :
6063 - os : ubuntu-latest
61- python-version : 3.9
64+ python-version : " 3.10 "
6265 - os : windows-latest
63- python-version : 3.9
66+ python-version : " 3.10 "
6467 - os : ubuntu-latest
65- python-version : 3.12
68+ python-version : " 3.12"
69+ - os : ubuntu-latest
70+ python-version : " 3.13"
6671 runs-on : ${{ matrix.os }}
6772 steps :
6873 - name : Checkout repo
6974 uses : actions/checkout@v4
7075
7176 - name : Set up Python ${{ matrix.python-version }}
72- uses : actions/setup-python@v5
77+ uses : actions/setup-python@v6
7378 with :
7479 python-version : ${{ matrix.python-version }}
7580 cache : " pip"
@@ -86,22 +91,29 @@ jobs:
8691 timeout-minutes : 10
8792 runs-on : ubuntu-latest
8893 steps :
89- - uses : actions/checkout@v4
90- - uses : lycheeverse/lychee-action@v1.9.3
94+ - uses : actions/checkout@v5
95+ - name : Convert ipynb to markdown
96+ shell : bash
97+ run : |
98+ pip install --quiet nbconvert
99+ # Find all .ipynb files under recipes/ and subfolders and convert them to .md
100+ find recipes -type f -name '*.ipynb' -print0 | while IFS= read -r -d '' file; do
101+ echo "Converting $file"
102+ jupyter nbconvert --to markdown "$file"
103+ done
104+ - uses : lycheeverse/lychee-action@v2
91105 with :
92- fail : true
93- debug : false
94- args : " -qq --no-progress --insecure './**/*.md' './src/kili/**/*.py'"
106+ args : " -qq --no-progress --insecure --accept 200,201,202,203,204,206,207,208,226,301,302,307,308 --max-redirects 5 './**/*.md'"
95107
96108 build-test :
97109 runs-on : ubuntu-latest
98110 steps :
99111 - uses : actions/checkout@v4
100112
101113 - name : Set up Python
102- uses : actions/setup-python@v5
114+ uses : actions/setup-python@v6
103115 with :
104- python-version : 3.9
116+ python-version : " 3.10 "
105117 cache : " pip"
106118
107119 - name : Install dependencies
@@ -129,9 +141,9 @@ jobs:
129141 - uses : actions/checkout@v4
130142
131143 - name : Set up Python
132- uses : actions/setup-python@v5
144+ uses : actions/setup-python@v6
133145 with :
134- python-version : 3.9
146+ python-version : " 3.10 "
135147 cache : " pip"
136148
137149 - name : Install dependencies
0 commit comments