Skip to content
This repository was archived by the owner on Apr 25, 2026. It is now read-only.

Commit bd4b1c1

Browse files
Set python version to min 3.10
1 parent 01d2a90 commit bd4b1c1

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

.github/workflows/on-demand_ci.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ jobs:
3232
runs-on: ubuntu-22.04
3333
steps:
3434
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
35+
- name: Setup a Supported python version # NOTE: https://docs.openstack.org/tempest/latest/supported_version.html
36+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # 5.3.0
37+
id: python3-setup
38+
with:
39+
python-version: "3.11" # NOTE: distutils deprecated on Python 3.12+ (https://peps.python.org/pep-0632/)
40+
- name: Create symlink
41+
run: |
42+
version=${{ steps.python3-setup.outputs.python-version }}
43+
path="/usr/bin/python${version%\.*}"
44+
sudo rm -f "$path"
45+
sudo ln -s ${{ steps.python3-setup.outputs.python-path }} "$path"
46+
- name: Uninstall postgresql package # NOTE: This has a conflict with Azure packages (https://github.com/actions/runner-images/blob/main/images/ubuntu/Ubuntu2204-Readme.md#postgresql)
47+
run: sudo apt-get --purge -y remove postgresql*
3548
- name: Deploy services
3649
env:
3750
MYSQL_PASSWORD: root
@@ -40,6 +53,17 @@ jobs:
4053
runs-on: ubuntu-20.04
4154
steps:
4255
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
56+
- name: Setup a Supported python version # NOTE: https://docs.openstack.org/tempest/latest/supported_version.html
57+
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # 5.3.0
58+
id: python3-setup
59+
with:
60+
python-version: "3.11" # NOTE: distutils deprecated on Python 3.12+ (https://peps.python.org/pep-0632/)
61+
- name: Create symlink
62+
run: |
63+
version=${{ steps.python3-setup.outputs.python-version }}
64+
path="/usr/bin/python${version%\.*}"
65+
sudo rm -f "$path"
66+
sudo ln -s ${{ steps.python3-setup.outputs.python-path }} "$path"
4367
- name: Deploy services
4468
env:
4569
MYSQL_PASSWORD: root

0 commit comments

Comments
 (0)