diff --git a/ci/docker/build-and-test.dockerfile b/ci/docker/build-and-test.dockerfile index 1563041c0..820f0f53c 100644 --- a/ci/docker/build-and-test.dockerfile +++ b/ci/docker/build-and-test.dockerfile @@ -10,6 +10,12 @@ RUN apt-get update && apt-get install -y \ xvfb \ lcov +# Setup python requirements for JSON datafile validation +RUN pip install PyYAML +RUN pip install Brotli +RUN pip install schema +RUN pip install nanobind + COPY . /opt/src/vt-tv RUN mkdir -p /opt/build/vt-tv @@ -29,7 +35,7 @@ RUN VT_TV_COVERAGE_ENABLED=$VT_TV_COVERAGE_ENABLED bash /opt/src/vt-tv/ci/test_c FROM base AS test-python ARG VT_TV_PYTHON_BINDINGS_ENABLED=OFF RUN if [[ VT_TV_PYTHON_BINDINGS_ENABLED == "ON" ]]; then \n \ - bash /opt/src/vt-tv/ci/test_python.sh \n \ + bash /opt/src/vt-tv/ci/test_python.sh \n \ fi # Artifacts diff --git a/ci/test_python.sh b/ci/test_python.sh index a0efc19e6..f81a10d21 100644 --- a/ci/test_python.sh +++ b/ci/test_python.sh @@ -12,8 +12,11 @@ export DISPLAY=:99.0 # Activate conda environment . /opt/conda/etc/profile.d/conda.sh && conda activate deves -# Build +# Install python libs pip install PyYAML +pip install Brotli +pip install schema +pip install nanobind pip install /opt/src/vt-tv # Start custom display with X virtual frame buffer