Skip to content

Commit 4460812

Browse files
cython tests should try to run tests if present
1 parent 76c6b2b commit 4460812

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/conda-package.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,11 @@ jobs:
473473
CC=dpcpp CXX=dpcpp LDSHARED="dpcpp -shared" \
474474
python setup.py build_ext --inplace || exit 1
475475
conda deactivate
476-
LD_LIBRARY_PATH=${CONDA_PREFIX}/lib python run.py || exit 1
476+
if [ -e tests ]
477+
then
478+
LD_LIBRARY_PATH=${CONDA_PREFIX}/lib python -m pytest tests || exit 1
479+
else
480+
LD_LIBRARY_PATH=${CONDA_PREFIX}/lib python run.py || exit 1
477481
popd
478482
done
479483
cd ../c

0 commit comments

Comments
 (0)