Commit 74929f47 authored by Gerard Marull-Paretas's avatar Gerard Marull-Paretas Committed by Stephanos Ioannidis
Browse files

ci: doc-build: fix PDF build



New LaTeX Docker image (Debian based) uses Python 3.11. On Debian
systems, this version does not allow to install packages to the system
environment using pip.  Use a virtual environment instead.

Signed-off-by: default avatarGerard Marull-Paretas <gerard@teslabs.com>
(cherry picked from commit e6d9ff29)
parent 3c4bdfa5
Loading
Loading
Loading
Loading
+7 −1
Original line number Diff line number Diff line
@@ -130,7 +130,7 @@ jobs:
    - name: install-pkgs
      run: |
        apt-get update
        apt-get install -y python3-pip ninja-build doxygen graphviz librsvg2-bin
        apt-get install -y python3-pip python3-venv ninja-build doxygen graphviz librsvg2-bin

    - name: cache-pip
      uses: actions/cache@v3
@@ -138,6 +138,12 @@ jobs:
        path: ~/.cache/pip
        key: pip-${{ hashFiles('scripts/requirements-doc.txt') }}

    - name: setup-venv
      run: |
        python3 -m venv .venv
        . .venv/bin/activate
        echo PATH=$PATH >> $GITHUB_ENV

    - name: install-pip
      run: |
        pip3 install -U setuptools wheel pip