Skip to content

Commit 2f8e4c4

Browse files
committed
SCANPY-222 Use specified python version in ITs
1 parent a1b5504 commit 2f8e4c4

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

.github/actions/config-poetry/action.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ inputs:
1313
description: The version of jFrog to install
1414
default: 2.77.0
1515
poetry-virtualenvs-path:
16-
description: Path to the Poetry virtual environments, relative to GitHub workspace. The folder is cached only if it is a subdirectory of
16+
description:
17+
Path to the Poetry virtual environments, relative to GitHub workspace. The folder is cached only if it is a subdirectory of
1718
`poetry-cache-dir`.
1819
default: .cache/pypoetry/virtualenvs
1920
poetry-cache-dir:
@@ -41,16 +42,22 @@ runs:
4142
path: ${{ inputs.poetry-cache-dir }}
4243
key: poetry-${{ runner.os }}-${{ hashFiles('poetry.lock') }}
4344
restore-keys: poetry-${{ runner.os }}-
44-
- name: Install mise and Python
45+
46+
# python needs to be installed before jfrog and poetry
47+
# (see https://xtranet-sonarsource.atlassian.net/wiki/spaces/Platform/pages/4344217683/Mise+Poetry+Install+-+GitHub)
48+
- name: Install mise and python
4549
uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
4650
with:
4751
version: 2025.7.12
48-
install_args: "python@${{ inputs.python-version }}"
52+
tool_versions: |
53+
python ${{ inputs.python-version }}
54+
4955
- name: Install jfrog and poetry through mise
5056
uses: jdx/mise-action@5ac50f778e26fac95da98d50503682459e86d566 # v3.2.0
5157
with:
5258
version: 2025.7.12
5359
experimental: true # needed to use the http backend for installation of jfrog on windows
60+
5461
- name: Vault
5562
# yamllint disable rule:line-length
5663
id: secrets
@@ -72,4 +79,3 @@ runs:
7279
echo "POETRY_VIRTUALENVS_PATH=${POETRY_VIRTUALENVS_PATH}" >> "$GITHUB_ENV"
7380
echo "POETRY_CACHE_DIR=${POETRY_CACHE_DIR}" >> "$GITHUB_ENV"
7481
${GITHUB_ACTION_PATH}/config-poetry.sh
75-

0 commit comments

Comments
 (0)