From 4524dece641eb448f654836e4799e86363347a43 Mon Sep 17 00:00:00 2001 From: Tushar Bana <153725830+tusharbana-ansys@users.noreply.github.com> Date: Tue, 7 Jan 2025 12:32:08 +0530 Subject: [PATCH] Upgrade to python3.12 for centos/fedora builds (#406) Co-authored-by: Roberto Pastor Muela <37798125+RobPasMue@users.noreply.github.com> --- .github/workflows/ci_cd.yml | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci_cd.yml b/.github/workflows/ci_cd.yml index f660fb9..fad0ce5 100644 --- a/.github/workflows/ci_cd.yml +++ b/.github/workflows/ci_cd.yml @@ -9,7 +9,7 @@ on: - main env: - MAIN_PYTHON_VERSION: '3.11' + MAIN_PYTHON_VERSION: '3.12' PRECOMPILE_PYTHON_VERSION: '3.11.9' DOCUMENTATION_CNAME: 'installer.docs.pyansys.com' LIBRARY_NAME: 'ansys-tools-installer' @@ -260,12 +260,15 @@ jobs: run: | yum update -y yum groupinstall "Development Tools" -y + yum install python3.12 python3.12-pip -y + update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1 + update-alternatives --set python3 /usr/bin/python3.12 + - name: Install CentOS/Fedora Dependencies if: contains(matrix.os, 'centos') || contains(matrix.os, 'fedora') run: | - yum install python3 \ - python3-pip \ + yum install python3-pip \ wget \ binutils \ ruby-devel \ @@ -333,6 +336,7 @@ jobs: - name: Update pip run: | + python3 --version python3 -m pip install pip -U - name: Install pip Dependencies