diff --git a/.docker/Dockerfile b/.docker/Dockerfile index 52fc7fe..06f7437 100644 --- a/.docker/Dockerfile +++ b/.docker/Dockerfile @@ -16,12 +16,11 @@ RUN apt-get update RUN ACCEPT_EULA=Y apt-get install -y msodbcsql17 mssql-tools # Useful only in 3.22 and 3.28: drop when not need anymore -RUN apt-get update && apt-get -y install python3-pip python3-venv python3-pytest +RUN apt-get update && apt-get -y install python3-pip python3-venv python3-pytest wheel ENV VIRTUAL_ENV=/opt/venv RUN python3 -m venv --system-site-packages $VIRTUAL_ENV ENV PATH="$VIRTUAL_ENV/bin:$PATH" -RUN pip3 install wheel COPY ./requirements.txt /tmp/ RUN pip3 install -r /tmp/requirements.txt diff --git a/.docker/run-docker-tests.sh b/.docker/run-docker-tests.sh index 3938cf3..63b4d4e 100755 --- a/.docker/run-docker-tests.sh +++ b/.docker/run-docker-tests.sh @@ -34,5 +34,5 @@ echo "" pushd /usr/src DEFAULT_PARAMS='-v' -xvfb-run pytest ${@:-`echo $DEFAULT_PARAMS`} $1 $2 +xvfb-run python -m pytest ${@:-`echo $DEFAULT_PARAMS`} $1 $2 popd