From a114b7005cafb27a88151c1aa4ba5990678060d3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Tue, 24 Sep 2024 00:33:38 +0000 Subject: [PATCH 1/2] CI(Ubuntu): Install latest version of Python for full config --- .github/workflows/ubuntu.yml | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 57b0821eec4..3ad145115e7 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,12 @@ 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 + - name: Create installation directory run: | mkdir $HOME/install @@ -132,7 +146,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 From 9b05e37aa005a13589d4900e90439068a8d6b632 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edouard=20Choini=C3=A8re?= <27212526+echoix@users.noreply.github.com> Date: Tue, 24 Sep 2024 01:06:51 +0000 Subject: [PATCH 2/2] CI(Ubuntu): Install packages from pip --- .github/workflows/ubuntu.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ubuntu.yml b/.github/workflows/ubuntu.yml index 3ad145115e7..aea97c989fd 100644 --- a/.github/workflows/ubuntu.yml +++ b/.github/workflows/ubuntu.yml @@ -119,6 +119,7 @@ jobs: 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: |