Skip to content

Commit 4524dec

Browse files
Upgrade to python3.12 for centos/fedora builds (#406)
Co-authored-by: Roberto Pastor Muela <[email protected]>
1 parent 00f3bd4 commit 4524dec

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/ci_cd.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
- main
1010

1111
env:
12-
MAIN_PYTHON_VERSION: '3.11'
12+
MAIN_PYTHON_VERSION: '3.12'
1313
PRECOMPILE_PYTHON_VERSION: '3.11.9'
1414
DOCUMENTATION_CNAME: 'installer.docs.pyansys.com'
1515
LIBRARY_NAME: 'ansys-tools-installer'
@@ -260,12 +260,15 @@ jobs:
260260
run: |
261261
yum update -y
262262
yum groupinstall "Development Tools" -y
263+
yum install python3.12 python3.12-pip -y
264+
update-alternatives --install /usr/bin/python3 python3 /usr/bin/python3.12 1
265+
update-alternatives --set python3 /usr/bin/python3.12
266+
263267
264268
- name: Install CentOS/Fedora Dependencies
265269
if: contains(matrix.os, 'centos') || contains(matrix.os, 'fedora')
266270
run: |
267-
yum install python3 \
268-
python3-pip \
271+
yum install python3-pip \
269272
wget \
270273
binutils \
271274
ruby-devel \
@@ -333,6 +336,7 @@ jobs:
333336
334337
- name: Update pip
335338
run: |
339+
python3 --version
336340
python3 -m pip install pip -U
337341
338342
- name: Install pip Dependencies

0 commit comments

Comments
 (0)