Skip to content

Commit 321df84

Browse files
test_example job needs scikit-build
1 parent 3032919 commit 321df84

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/conda-package.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -376,7 +376,7 @@ jobs:
376376
shell: bash -l {0}
377377
run: |
378378
source $CONDA/etc/profile.d/conda.sh
379-
conda install -y pybind11 cython
379+
conda install -y pybind11 cython scikit-build ninja cmake>=3.22
380380
conda install -y -c intel mkl-dpcpp mkl-devel-dpcpp numba-dppy
381381
conda create -y -n build_env -c intel dpcpp_linux-64
382382
- name: Build and run examples with native extensions
@@ -393,9 +393,19 @@ jobs:
393393
do
394394
pushd $d
395395
conda activate --stack build_env
396-
python setup.py build_ext --inplace || exit 1
396+
if [ -e CMakeLists.txt ]
397+
then
398+
python setup.py build_ext --inplace -- -G Ninja -DCMAKE_C_COMPILER:PATH=icx -DCMAKE_CXX_COMPILER:PATH=icpx || exit 1
399+
else
400+
python setup.py build_ext --inplace || exit 1
401+
fi
397402
conda deactivate
398-
python example.py
403+
if [ -e tests ]
404+
then
405+
python -m pytest tests
406+
else
407+
python example.py
408+
fi
399409
popd
400410
done
401411
cd ../cython

0 commit comments

Comments
 (0)