diff --git a/.github/build-wheels.sh b/.github/build-wheels.sh index 583fa23..a64c189 100755 --- a/.github/build-wheels.sh +++ b/.github/build-wheels.sh @@ -52,10 +52,12 @@ echo "dist directory:" ls /io/dist for PYTHON in ${PYTHON_VERSIONS}; do + # clear python cache + find /io -type d -name __pycache__ -delete + echo echo -n "Test $PYTHON: " /opt/python/${PYTHON}/bin/python -c "import platform; print('Building wheel for {platform} platform.'.format(platform=platform.platform()))" /opt/python/${PYTHON}/bin/pip install "$package_name"[testing,webassets] -f file:///io/dist - find /io/tests -name __pycache__ | xargs rm -rf /opt/python/${PYTHON}/bin/nosetests -v --with-coverage --cover-package="$package_name" --cover-erase /io/tests done