Use direct paths instead of activating venvs
This commit is contained in:
parent
daa4ac0436
commit
4f58df49c3
@ -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")'
|
%{python3} -c 'from setuptools.build_meta import build_wheel; build_wheel("dist")'
|
||||||
if [ -d "tests/" ]; then
|
if [ -d "tests/" ]; then
|
||||||
%{python3} -m venv venv --system-site-packages
|
%{python3} -m venv venv --system-site-packages
|
||||||
. ./venv/bin/activate
|
./venv/bin/pip install dist/*.whl
|
||||||
pip install dist/*.whl
|
./venv/bin/python -Pm pytest tests/
|
||||||
python -Pm pytest tests/
|
|
||||||
deactivate
|
|
||||||
fi
|
fi
|
||||||
cd -
|
cd -
|
||||||
done
|
done
|
||||||
|
Loading…
Reference in New Issue
Block a user