4444 python-version : ["3.10", "3.11", "3.12", "3.13", "3.14"]
4545
4646 steps :
47- - uses : actions/checkout@v6
47+ - uses : actions/checkout@v4
4848
49- - uses : actions/setup-python@v6
49+ - uses : actions/setup-python@v5
5050 with :
5151 python-version : ${{ matrix.python-version }}
5252
5858 - name : Build and install (including C extension)
5959 run : pip install -e . --no-build-isolation
6060
61+ - name : Install optional dependencies (best-effort)
62+ run : |
63+ pip install xgboost || echo "xgboost unavailable for this Python — xgb tests will be skipped"
64+ pip install "torch>=2.0" --index-url https://download.pytorch.org/whl/cpu || echo "torch unavailable for this Python — DL tests will be skipped"
65+
6166 - name : Run test suite (excluding slow/perf)
6267 run : |
6368 pytest \
@@ -67,14 +72,14 @@ jobs:
6772
6873 - name : Upload test results
6974 if : always()
70- uses : actions/upload-artifact@v6
75+ uses : actions/upload-artifact@v4
7176 with :
7277 name : test-results-py${{ matrix.python-version }}
7378 path : test-results.xml
7479
7580 - name : Upload coverage report
7681 if : always()
77- uses : actions/upload-artifact@v6
82+ uses : actions/upload-artifact@v4
7883 with :
7984 name : coverage-py${{ matrix.python-version }}
8085 path : coverage.xml
8893 runs-on : ubuntu-latest
8994
9095 steps :
91- - uses : actions/checkout@v6
96+ - uses : actions/checkout@v4
9297
93- - uses : actions/setup-python@v6
98+ - uses : actions/setup-python@v5
9499 with :
95100 python-version : " 3.12"
96101
99104 pip install build
100105 python -m build --sdist
101106
102- - uses : actions/upload-artifact@v6
107+ - uses : actions/upload-artifact@v4
103108 with :
104109 name : sdist
105110 path : dist/*.tar.gz
@@ -120,15 +125,15 @@ jobs:
120125 os : [ubuntu-latest, macos-latest, windows-latest]
121126
122127 steps :
123- - uses : actions/checkout@v6
128+ - uses : actions/checkout@v4
124129
125130 - name : Set up QEMU (Linux aarch64 cross-compilation)
126131 if : matrix.os == 'ubuntu-latest'
127132 uses : docker/setup-qemu-action@v3
128133 with :
129134 platforms : arm64
130135
131- - uses : actions/setup-python@v6
136+ - uses : actions/setup-python@v5
132137 with :
133138 python-version : " 3.12"
134139
@@ -151,7 +156,7 @@ jobs:
151156 CIBW_BUILD_VERBOSITY : 1
152157 run : cibuildwheel --output-dir wheelhouse
153158
154- - uses : actions/upload-artifact@v6
159+ - uses : actions/upload-artifact@v4
155160 with :
156161 name : wheels-${{ matrix.os }}
157162 path : wheelhouse/*.whl
@@ -165,16 +170,16 @@ jobs:
165170 runs-on : ubuntu-latest
166171
167172 steps :
168- - uses : actions/checkout@v6
173+ - uses : actions/checkout@v4
169174
170175 - name : Download source distribution
171- uses : actions/download-artifact@v6
176+ uses : actions/download-artifact@v4
172177 with :
173178 name : sdist
174179 path : dist/
175180
176181 - name : Download wheels
177- uses : actions/download-artifact@v6
182+ uses : actions/download-artifact@v4
178183 with :
179184 pattern : " wheels-*"
180185 path : dist/
@@ -209,13 +214,13 @@ jobs:
209214
210215 steps :
211216 - name : Download source distribution
212- uses : actions/download-artifact@v6
217+ uses : actions/download-artifact@v4
213218 with :
214219 name : sdist
215220 path : dist/
216221
217222 - name : Download wheels
218- uses : actions/download-artifact@v6
223+ uses : actions/download-artifact@v4
219224 with :
220225 pattern : " wheels-*"
221226 path : dist/
@@ -236,7 +241,7 @@ jobs:
236241 runs-on : ubuntu-latest
237242
238243 steps :
239- - uses : actions/checkout@v6
244+ - uses : actions/checkout@v4
240245 with :
241246 fetch-depth : 0
242247
@@ -255,13 +260,13 @@ jobs:
255260 RELEASE_TAG : ${{ env.RELEASE_TAG }}
256261
257262 - name : Download source distribution
258- uses : actions/download-artifact@v6
263+ uses : actions/download-artifact@v4
259264 with :
260265 name : sdist
261266 path : release-assets/
262267
263268 - name : Download wheels
264- uses : actions/download-artifact@v6
269+ uses : actions/download-artifact@v4
265270 with :
266271 pattern : " wheels-*"
267272 path : release-assets/
0 commit comments