File tree 2 files changed +13
-2
lines changed
2 files changed +13
-2
lines changed Original file line number Diff line number Diff line change @@ -145,5 +145,6 @@ runs:
145
145
run : |
146
146
CUDA_PATH=$(realpath "./cuda_toolkit")
147
147
echo "CUDA_PATH=${CUDA_PATH}" >> $GITHUB_ENV
148
+ echo "CUDA_HOME=${CUDA_PATH}" >> $GITHUB_ENV
148
149
echo "${CUDA_PATH}/bin" >> $GITHUB_PATH
149
150
echo "LD_LIBRARY_PATH=${LD_LIBRARY_PATH:-}:${CUDA_PATH}/lib" >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -285,6 +285,9 @@ jobs:
285
285
uses : actions/setup-python@v5
286
286
with :
287
287
python-version : ${{ matrix.python-version }}
288
+ env :
289
+ # we use self-hosted runners on which setup-python behaves weirdly...
290
+ AGENT_TOOLSDIRECTORY : " /opt/hostedtoolcache"
288
291
289
292
- name : Set up mini CTK
290
293
uses : ./.github/actions/fetch_ctk
@@ -306,8 +309,15 @@ jobs:
306
309
pushd ./cuda_bindings
307
310
pip install -r requirements.txt
308
311
pytest -rxXs tests/
309
- # TODO: enable cython tests
310
- #pytest tests/cython
312
+ if [[ "${{ matrix.host-platform }}" == linux* ]]; then
313
+ # cython tests require gcc
314
+ apt install -y build-essential
315
+ bash tests/cython/build_tests.sh
316
+ elif [[ "${{ matrix.host-platform }}" == win* ]]; then
317
+ # TODO: enable this once win-64 runners are up
318
+ exit 1
319
+ fi
320
+ pytest -rxXs tests/cython
311
321
popd
312
322
313
323
- name : Run cuda.core tests
You can’t perform that action at this time.
0 commit comments