Use direct paths instead of activating venvs

This commit is contained in:
Maxwell G 2023-08-31 01:55:57 +00:00
parent daa4ac0436
commit 4f58df49c3
No known key found for this signature in database
GPG Key ID: F79E4E25E8C661F8

View File

@ -105,10 +105,8 @@ for example in $(ls examples/ | grep -vE %{integration_tests_exc}); do
%{python3} -c 'from setuptools.build_meta import build_wheel; build_wheel("dist")'
if [ -d "tests/" ]; then
%{python3} -m venv venv --system-site-packages
. ./venv/bin/activate
pip install dist/*.whl
python -Pm pytest tests/
deactivate
./venv/bin/pip install dist/*.whl
./venv/bin/python -Pm pytest tests/
fi
cd -
done