diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 57b0821eec..aea97c989f 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -99,6 +99,14 @@ jobs: }}:g' .gunittest.cfg > .gunittest.extra.cfg cat .gunittest.extra.cfg + - name: Set up Python + if: ${{ matrix.config == 'ubuntu-22.04' }} + uses: actions/setup-python@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 + with: + python-version: 3.13 + cache: pip + allow-prereleases: true + - name: Get dependencies run: | sudo apt-get update -y @@ -106,6 +114,13 @@ jobs: xargs -a <(awk '! /^ *(#|$)/' ".github/workflows/apt.txt") -r -- \ sudo apt-get install -y --no-install-recommends --no-install-suggests + - name: Install Python dependencies + if: ${{ matrix.config == 'ubuntu-22.04' }} + run: | + python -m pip install --upgrade pip + pip install -r .github/workflows/python_requirements.txt + pip install -r .github/workflows/optional_requirements.txt + - name: Create installation directory run: | mkdir $HOME/install @@ -132,7 +147,6 @@ jobs: # TODO: -pedantic-errors here won't compile CXXFLAGS: -fPIC run: .github/workflows/build_${{ matrix.config }}.sh $HOME/install -Werror - - name: Add the bin directory to PATH run: | echo "$HOME/install/bin" >> $GITHUB_PATH