Skip to content

Commit f646868

Browse files
committed
conditionally avoid pytest-cov if Python is 3.13
1 parent ebbe4e2 commit f646868

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

conda-recipe/run_test.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,8 @@ set -e
44

55
${PYTHON} -c "import dpctl; print(dpctl.__version__)"
66
${PYTHON} -m dpctl -f
7-
${PYTHON} -m pytest -q -ra --disable-warnings --cov dpctl --cov-report term-missing --pyargs dpctl -vv
7+
if ${PYTHON} --version 2>&1 | grep -q '^Python 3\.13'; then
8+
${PYTHON} -m pytest -q -ra --disable-warnings --pyargs dpctl -vv
9+
else
10+
${PYTHON} -m pytest -q -ra --disable-warnings --cov dpctl --cov-report term-missing --pyargs dpctl -vv
11+
fi

0 commit comments

Comments
 (0)