Skip to content

Commit 3e3e16e

Browse files
committed
Test using setup-python to set default python to 3.10
1 parent 7e9553e commit 3e3e16e

1 file changed

Lines changed: 13 additions & 9 deletions

File tree

.github/workflows/stackhpc-container-image-build.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -150,15 +150,6 @@ jobs:
150150
run: |
151151
curl -sL https://github.com/mikefarah/yq/releases/download/v4.42.1/yq_linux_amd64.tar.gz | tar xz && sudo mv yq_linux_amd64 /usr/bin/yq
152152
153-
- name: Install Kayobe
154-
run: |
155-
mkdir -p venvs &&
156-
pushd venvs &&
157-
python3 -m venv kayobe &&
158-
source kayobe/bin/activate &&
159-
pip install -U pip &&
160-
pip install ../src/kayobe
161-
162153
# Required for Pulp auth proxy deployment and Docker registry login.
163154
# Normally installed during host configure.
164155
- name: Install Docker Python SDK
@@ -170,6 +161,19 @@ jobs:
170161
sudo pip install docker 'requests<2.32.0' --break-system-packages
171162
fi
172163
164+
- name: Use supported Python version of the OpenStack release
165+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
166+
with:
167+
python-version: '3.10' # Latest supported Python runtime for 2023.1
168+
- name: Install Kayobe
169+
run: |
170+
mkdir -p venvs &&
171+
pushd venvs &&
172+
python3 -m venv kayobe &&
173+
source kayobe/bin/activate &&
174+
pip install -U pip &&
175+
pip install ../src/kayobe
176+
173177
- name: Get Kolla tag
174178
id: write-kolla-tag
175179
run: echo "kolla-tag=${{ needs.generate-tag.outputs.openstack_release }}-${{ matrix.distro }}-${{ matrix.distro == 'rocky' && '9' || 'jammy' }}-${{ needs.generate-tag.outputs.datetime_tag }}" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)