Skip to content

Commit 715a506

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

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/conda-package.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,12 @@ 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
481+
fi
477482
popd
478483
done
479484
cd ../c

0 commit comments

Comments
 (0)