Skip to content

Commit

Permalink
CI(Ubuntu): Install latest version of Python for full config
Browse files Browse the repository at this point in the history
  • Loading branch information
echoix committed Sep 24, 2024
1 parent c266f46 commit c3b66a3
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion .github/workflows/ubuntu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,26 @@ 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
sudo apt-get install -y wget git gawk findutils
xargs -a <(awk '! /^ *(#|$)/' ".github/workflows/apt.txt") -r -- \
sudo apt-get install -y --no-install-recommends --no-install-suggests
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -r .github/workflows/python_requirements.txt
- name: Create installation directory
run: |
mkdir $HOME/install
Expand All @@ -132,7 +145,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
Expand Down

0 comments on commit c3b66a3

Please sign in to comment.