Skip to content

Commit 679d4d6

Browse files
committed
ci: Fix CI by preventing running tests on venvs
1 parent 8d60895 commit 679d4d6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

tests/test_project.sh

+4-2
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,10 @@ pycode="import sys; print(sys.version.split(' ', 1)[0].rsplit('.', 1)[0])"
5555
make run python -c "print('run: ', end=''); ${pycode}"
5656
make multirun python -c "print('multirun: ', end=''); ${pycode}"
5757
make allrun python -c "print('allrun: ', end=''); ${pycode}"
58-
version="$(python -c "${pycode}")"
59-
make "${version}" python -c "print('3.x: ', end=''); ${pycode}" | grep -F "${version}"
58+
if [ -n "${PYTHON_VERSIONS}" ]; then
59+
version="$(python -c "${pycode}")"
60+
make "${version}" python -c "print('3.x: ', end=''); ${pycode}" | grep -F "${version}"
61+
fi
6062
echo
6163
echo ">>> Formatting and asserting there are no changes"
6264
make format

0 commit comments

Comments
 (0)