From 9c3741f71e29434202df5dd18ae4dec659b10a69 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Thu, 19 Mar 2026 16:03:33 +0100 Subject: [PATCH 01/12] feat: allow using uv python distributions --- _release-pypi/action.yml | 10 ++++++++++ _setup-python/action.yml | 22 +++++++++++++++++----- build-library/action.yml | 10 ++++++++++ build-wheelhouse/action.yml | 10 ++++++++++ check-licenses/action.yml | 10 ++++++++++ check-vulnerabilities/action.yml | 12 +++++++++++- code-style/action.yml | 10 ++++++++++ doc-build/action.yml | 10 ++++++++++ doc-changelog/action.yml | 10 ++++++++++ doc-deploy-changelog/action.yml | 10 ++++++++++ doc-deploy-stable/action.yml | 10 ++++++++++ hk-package-clean-except/action.yml | 9 +++++++++ hk-package-clean-untagged/action.yml | 9 +++++++++ release-github/action.yml | 10 ++++++++++ tests-pytest/action.yml | 10 ++++++++++ 15 files changed, 156 insertions(+), 6 deletions(-) diff --git a/_release-pypi/action.yml b/_release-pypi/action.yml index 644cfbe4d..627b96523 100644 --- a/_release-pypi/action.yml +++ b/_release-pypi/action.yml @@ -103,6 +103,15 @@ inputs: required: false type: boolean + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -134,6 +143,7 @@ runs: use-cache: false provision-uv: ${{ inputs.use-uv }} prune-uv-cache: true + use-uv-python: ${{ inputs.install-python-with-uv }} - name: "Install twine" shell: bash diff --git a/_setup-python/action.yml b/_setup-python/action.yml index 9b1a0521b..b734939ab 100644 --- a/_setup-python/action.yml +++ b/_setup-python/action.yml @@ -49,6 +49,14 @@ inputs: required: true type: boolean + use-uv-python: + description: | + 'Whether to use uv python or not. This input only has an effect if + ``provision-uv`` is set to ``true``. If ``true``, uv python is used. If ``false``, + python provided by ``actions/setup-python`` is used. + By default it is set to ``false``.' + required: true + type: boolean runs: using: "composite" @@ -82,23 +90,27 @@ runs: # NOTE: When a workflow is triggered without using the cache, it can lead to a failure # in the Post Run action saying that the cache folder doesn't exist on disk. # This is related to our use of uv to install packages, see https://github.com/ansys/actions/pull/811 - - name: "Set up Python using cache" - if: ${{ inputs.use-cache == 'true' && inputs.provision-uv == 'false'}} + - name: Set up Python with actions/setup-python and using cache + if: ${{ inputs.use-uv-python == 'false' && inputs.use-cache == 'true' && inputs.provision-uv == 'false'}} uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{ inputs.python-version }} cache: 'pip' cache-dependency-path: 'pyproject.toml' - - name: "Set up Python without using cache" - if: ${{ inputs.use-cache == 'false' || (inputs.use-cache == 'true' && inputs.provision-uv == 'true') }} + - name: Set up Python with actions/setup-python and without using cache + if: ${{ inputs.use-uv-python == 'false' && inputs.use-cache == 'false' || (inputs.use-cache == 'true' && inputs.provision-uv == 'true') }} uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 with: python-version: ${{ inputs.python-version }} - - name: "Set up uv" + - name: Set up uv if: ${{ inputs.provision-uv == 'true' }} uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0 with: enable-cache: ${{ inputs.use-cache }} prune-cache: ${{ inputs.prune-uv-cache }} + + - name: Install Python with uv + if: ${{ inputs.provision-uv == 'true' && inputs.use-uv-python == 'true' }} + run: uv pip install --python=${{ inputs.python-version }} diff --git a/build-library/action.yml b/build-library/action.yml index d6f0ac3d1..a1c62fd4f 100644 --- a/build-library/action.yml +++ b/build-library/action.yml @@ -135,6 +135,15 @@ inputs: default: false type: boolean + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -154,6 +163,7 @@ runs: use-cache: ${{ inputs.use-python-cache }} provision-uv: ${{ inputs.use-uv }} prune-uv-cache: ${{ inputs.use-python-cache != 'true' }} + use-uv-python: ${{ inputs.install-python-with-uv }} - name: "Install library" shell: bash diff --git a/build-wheelhouse/action.yml b/build-wheelhouse/action.yml index 33488d0a5..ef3aceb90 100644 --- a/build-wheelhouse/action.yml +++ b/build-wheelhouse/action.yml @@ -158,6 +158,15 @@ outputs: the virtual environment, such as running smoke tests. value: ${{ steps.virtual-environment-activation-command.outputs.ACTIVATE_VENV }} + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -175,6 +184,7 @@ runs: use-cache: ${{ inputs.use-python-cache }} provision-uv: ${{ inputs.use-uv }} prune-uv-cache: ${{ inputs.use-python-cache != 'true' }} + use-uv-python: ${{ inputs.install-python-with-uv }} - name: "Identify the build system" id: build-system diff --git a/check-licenses/action.yml b/check-licenses/action.yml index f265653c4..13f9667fd 100644 --- a/check-licenses/action.yml +++ b/check-licenses/action.yml @@ -136,6 +136,15 @@ inputs: default: '' type: string + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -201,6 +210,7 @@ runs: use-cache: ${{ inputs.use-python-cache }} provision-uv: ${{ inputs.use-uv }} prune-uv-cache: ${{ inputs.use-python-cache != 'true' }} + use-uv-python: ${{ inputs.install-python-with-uv }} - name: "Identify the build system" if: inputs.skip-install == 'false' diff --git a/check-vulnerabilities/action.yml b/check-vulnerabilities/action.yml index ee7e199c3..6ef8e55b2 100644 --- a/check-vulnerabilities/action.yml +++ b/check-vulnerabilities/action.yml @@ -206,6 +206,15 @@ inputs: required: false type: boolean + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -279,6 +288,7 @@ runs: use-cache: false provision-uv: ${{ inputs.use-uv }} prune-uv-cache: true + use-uv-python: ${{ inputs.install-python-with-uv }} # NOTE: Installation of poetry in a separate environment to the project to # avoid situations in which both poetry and the project have shared @@ -523,7 +533,7 @@ runs: fi - name: "Uploading safety and bandit results" - uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 + uses: actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f # v7.0.0 if: inputs.upload-reports == 'true' || ( failure() && inputs.upload-reports == 'true' ) with: name: vulnerability-results diff --git a/code-style/action.yml b/code-style/action.yml index 38c566e02..6ffe5e596 100644 --- a/code-style/action.yml +++ b/code-style/action.yml @@ -140,6 +140,15 @@ inputs: default: true type: boolean + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -193,6 +202,7 @@ runs: use-cache: ${{ inputs.use-python-cache }} provision-uv: ${{ inputs.use-uv }} prune-uv-cache: ${{ inputs.use-python-cache != 'true' }} + use-uv-python: ${{ inputs.install-python-with-uv }} # NOTE: Installation of poetry in a separate environment to the project to # avoid situations in which both poetry and the project have shared diff --git a/doc-build/action.yml b/doc-build/action.yml index 725058fc2..90949d90e 100644 --- a/doc-build/action.yml +++ b/doc-build/action.yml @@ -213,6 +213,15 @@ inputs: required: false type: string + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -232,6 +241,7 @@ runs: use-cache: ${{ inputs.use-python-cache }} provision-uv: ${{ inputs.use-uv }} prune-uv-cache: ${{ inputs.use-python-cache != 'true' }} + use-uv-python: ${{ inputs.install-python-with-uv }} # ------------------------------------------------------------------------ diff --git a/doc-changelog/action.yml b/doc-changelog/action.yml index f711a7d72..9a8210a64 100644 --- a/doc-changelog/action.yml +++ b/doc-changelog/action.yml @@ -135,6 +135,15 @@ inputs: required: false type: boolean + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -187,6 +196,7 @@ runs: use-cache: ${{ inputs.use-python-cache }} provision-uv: ${{ inputs.use-uv }} prune-uv-cache: ${{ inputs.use-python-cache != 'true' }} + use-uv-python: ${{ inputs.install-python-with-uv }} - name: "Install towncrier and tomli" shell: bash diff --git a/doc-deploy-changelog/action.yml b/doc-deploy-changelog/action.yml index 418f2db13..11d1eeb81 100644 --- a/doc-deploy-changelog/action.yml +++ b/doc-deploy-changelog/action.yml @@ -187,6 +187,15 @@ inputs: default: true type: boolean + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -203,6 +212,7 @@ runs: use-cache: ${{ inputs.use-python-cache }} provision-uv: false prune-uv-cache: ${{ inputs.use-python-cache != 'true' }} + use-uv-python: ${{ inputs.install-python-with-uv }} - name: Save tag version id: save-tag-version diff --git a/doc-deploy-stable/action.yml b/doc-deploy-stable/action.yml index 7f7d428d6..e96b00696 100644 --- a/doc-deploy-stable/action.yml +++ b/doc-deploy-stable/action.yml @@ -183,6 +183,15 @@ inputs: default: true type: boolean + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -203,6 +212,7 @@ runs: use-cache: ${{ inputs.use-python-cache }} provision-uv: ${{ inputs.use-uv }} prune-uv-cache: ${{ inputs.use-python-cache != 'true' }} + use-uv-python: ${{ inputs.install-python-with-uv }} - name: "Install packaging" shell: bash diff --git a/hk-package-clean-except/action.yml b/hk-package-clean-except/action.yml index cea9aa76b..3f061078a 100644 --- a/hk-package-clean-except/action.yml +++ b/hk-package-clean-except/action.yml @@ -67,6 +67,14 @@ inputs: default: '' required: false type: string + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean runs: using: "composite" @@ -88,6 +96,7 @@ runs: use-cache: false provision-uv: true prune-uv-cache: true + use-uv-python: ${{ inputs.install-python-with-uv }} - name: "Install required packages" shell: bash diff --git a/hk-package-clean-untagged/action.yml b/hk-package-clean-untagged/action.yml index a6789cbd9..2d73bd9d1 100644 --- a/hk-package-clean-untagged/action.yml +++ b/hk-package-clean-untagged/action.yml @@ -58,6 +58,14 @@ inputs: default: '' required: false type: string + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean runs: using: "composite" @@ -79,6 +87,7 @@ runs: use-cache: false provision-uv: true prune-uv-cache: true + use-uv-python: ${{ inputs.install-python-with-uv }} - name: "Install required packages" shell: bash diff --git a/release-github/action.yml b/release-github/action.yml index e9e6a613f..d73b02f3e 100644 --- a/release-github/action.yml +++ b/release-github/action.yml @@ -171,6 +171,15 @@ inputs: required: false type: boolean + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -350,6 +359,7 @@ runs: use-cache: ${{ inputs.use-python-cache }} provision-uv: ${{ inputs.use-uv }} prune-uv-cache: ${{ inputs.use-python-cache != 'true' }} + use-uv-python: ${{ inputs.install-python-with-uv }} - name: "Install toml and pypandoc" shell: bash diff --git a/tests-pytest/action.yml b/tests-pytest/action.yml index 4de3891d4..d792f4647 100644 --- a/tests-pytest/action.yml +++ b/tests-pytest/action.yml @@ -132,6 +132,15 @@ inputs: required: false type: boolean + install-python-with-uv: + description: | + Whether to install Python using uv. The python distribution provided by uv are coming from + the Astral `python-build-standalone `_ + project. The uv Python distributions are self-contained, highly-portable, and performant. + default: false + required: false + type: boolean + runs: using: "composite" steps: @@ -185,6 +194,7 @@ runs: use-cache: ${{ inputs.use-python-cache }} provision-uv: ${{ inputs.use-uv }} prune-uv-cache: ${{ inputs.use-python-cache != 'true' }} + use-uv-python: ${{ inputs.install-python-with-uv }} # NOTE: Installation of poetry in a separate environment to the project to # avoid situations in which both poetry and the project have shared From 5f14a2530617a66660cd0589bcf76e30026981fa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Thu, 19 Mar 2026 16:11:07 +0100 Subject: [PATCH 02/12] fix: move install-python into input --- build-wheelhouse/action.yml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/build-wheelhouse/action.yml b/build-wheelhouse/action.yml index ef3aceb90..0061d38ab 100644 --- a/build-wheelhouse/action.yml +++ b/build-wheelhouse/action.yml @@ -149,15 +149,6 @@ inputs: required: false type: boolean -outputs: - - activate-venv: - description: | - Command used to activate the virtual environment set up by this action. - It can be reused in later steps of the same job to execute tasks within - the virtual environment, such as running smoke tests. - value: ${{ steps.virtual-environment-activation-command.outputs.ACTIVATE_VENV }} - install-python-with-uv: description: | Whether to install Python using uv. The python distribution provided by uv are coming from @@ -167,6 +158,15 @@ outputs: required: false type: boolean +outputs: + + activate-venv: + description: | + Command used to activate the virtual environment set up by this action. + It can be reused in later steps of the same job to execute tasks within + the virtual environment, such as running smoke tests. + value: ${{ steps.virtual-environment-activation-command.outputs.ACTIVATE_VENV }} + runs: using: "composite" steps: From 2aef3c51b900aea7e048d066ac08874a274688b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Thu, 19 Mar 2026 16:14:47 +0100 Subject: [PATCH 03/12] tbr: point to the dev branch --- _release-pypi/action.yml | 2 +- build-library/action.yml | 2 +- build-wheelhouse/action.yml | 2 +- check-licenses/action.yml | 2 +- check-vulnerabilities/action.yml | 2 +- code-style/action.yml | 2 +- doc-build/action.yml | 2 +- doc-changelog/action.yml | 2 +- doc-deploy-changelog/action.yml | 2 +- doc-deploy-stable/action.yml | 2 +- hk-package-clean-except/action.yml | 2 +- hk-package-clean-untagged/action.yml | 2 +- release-github/action.yml | 2 +- tests-pytest/action.yml | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/_release-pypi/action.yml b/_release-pypi/action.yml index 627b96523..339f0853a 100644 --- a/_release-pypi/action.yml +++ b/_release-pypi/action.yml @@ -137,7 +137,7 @@ runs: echo "::notice::We recommend using trusted publishers to securely publish packages on PyPI. You should consider moving to this approach." - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/build-library/action.yml b/build-library/action.yml index a1c62fd4f..3c271f083 100644 --- a/build-library/action.yml +++ b/build-library/action.yml @@ -157,7 +157,7 @@ runs: fetch-tags: ${{ inputs.checkout-fetch-tags }} - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/build-wheelhouse/action.yml b/build-wheelhouse/action.yml index 0061d38ab..693b15d60 100644 --- a/build-wheelhouse/action.yml +++ b/build-wheelhouse/action.yml @@ -178,7 +178,7 @@ runs: persist-credentials: false - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-licenses/action.yml b/check-licenses/action.yml index 13f9667fd..695da84db 100644 --- a/check-licenses/action.yml +++ b/check-licenses/action.yml @@ -204,7 +204,7 @@ runs: - name: "Set up Python" if: inputs.skip-install == 'false' - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-vulnerabilities/action.yml b/check-vulnerabilities/action.yml index 6ef8e55b2..428469fab 100644 --- a/check-vulnerabilities/action.yml +++ b/check-vulnerabilities/action.yml @@ -282,7 +282,7 @@ runs: Set up python to check vulnerabilities. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/code-style/action.yml b/code-style/action.yml index 6ffe5e596..d38b51b17 100644 --- a/code-style/action.yml +++ b/code-style/action.yml @@ -196,7 +196,7 @@ runs: Set up python to check code style. - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-build/action.yml b/doc-build/action.yml index 90949d90e..f847bda7c 100644 --- a/doc-build/action.yml +++ b/doc-build/action.yml @@ -235,7 +235,7 @@ runs: if: ${{ inputs.checkout == 'true' }} - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-changelog/action.yml b/doc-changelog/action.yml index 9a8210a64..6d606339e 100644 --- a/doc-changelog/action.yml +++ b/doc-changelog/action.yml @@ -190,7 +190,7 @@ runs: token: ${{ inputs.token }} # zizmor: ignore[artipacked] , credentials should be persisted - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-changelog/action.yml b/doc-deploy-changelog/action.yml index 11d1eeb81..0e22442b4 100644 --- a/doc-deploy-changelog/action.yml +++ b/doc-deploy-changelog/action.yml @@ -206,7 +206,7 @@ runs: fetch-depth: 0 # zizmor: ignore[artipacked] , credentials must be persisted in this case - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-stable/action.yml b/doc-deploy-stable/action.yml index e96b00696..c7a5dde28 100644 --- a/doc-deploy-stable/action.yml +++ b/doc-deploy-stable/action.yml @@ -206,7 +206,7 @@ runs: 'release/.'. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/hk-package-clean-except/action.yml b/hk-package-clean-except/action.yml index 3f061078a..c89a4225f 100644 --- a/hk-package-clean-except/action.yml +++ b/hk-package-clean-except/action.yml @@ -90,7 +90,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: '3.13' use-cache: false diff --git a/hk-package-clean-untagged/action.yml b/hk-package-clean-untagged/action.yml index 2d73bd9d1..b15326d55 100644 --- a/hk-package-clean-untagged/action.yml +++ b/hk-package-clean-untagged/action.yml @@ -81,7 +81,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: '3.13' use-cache: false diff --git a/release-github/action.yml b/release-github/action.yml index d73b02f3e..656d5500d 100644 --- a/release-github/action.yml +++ b/release-github/action.yml @@ -353,7 +353,7 @@ runs: run: ls -R dist/ - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/tests-pytest/action.yml b/tests-pytest/action.yml index d792f4647..e1e1e4537 100644 --- a/tests-pytest/action.yml +++ b/tests-pytest/action.yml @@ -188,7 +188,7 @@ runs: Set up python to test. - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} From 1235234624a56c31b7a94a928936c3e8de29cf2c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Thu, 19 Mar 2026 16:17:10 +0100 Subject: [PATCH 04/12] tbr: fix point to the dev branch --- _release-pypi/action.yml | 2 +- build-library/action.yml | 2 +- build-wheelhouse/action.yml | 2 +- check-licenses/action.yml | 2 +- check-vulnerabilities/action.yml | 2 +- code-style/action.yml | 2 +- doc-build/action.yml | 2 +- doc-changelog/action.yml | 2 +- doc-deploy-changelog/action.yml | 2 +- doc-deploy-stable/action.yml | 2 +- hk-package-clean-except/action.yml | 2 +- hk-package-clean-untagged/action.yml | 2 +- release-github/action.yml | 2 +- tests-pytest/action.yml | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/_release-pypi/action.yml b/_release-pypi/action.yml index 339f0853a..55483b36b 100644 --- a/_release-pypi/action.yml +++ b/_release-pypi/action.yml @@ -137,7 +137,7 @@ runs: echo "::notice::We recommend using trusted publishers to securely publish packages on PyPI. You should consider moving to this approach." - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/build-library/action.yml b/build-library/action.yml index 3c271f083..c9b1ebe57 100644 --- a/build-library/action.yml +++ b/build-library/action.yml @@ -157,7 +157,7 @@ runs: fetch-tags: ${{ inputs.checkout-fetch-tags }} - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/build-wheelhouse/action.yml b/build-wheelhouse/action.yml index 693b15d60..37fb89185 100644 --- a/build-wheelhouse/action.yml +++ b/build-wheelhouse/action.yml @@ -178,7 +178,7 @@ runs: persist-credentials: false - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-licenses/action.yml b/check-licenses/action.yml index 695da84db..fdc047acd 100644 --- a/check-licenses/action.yml +++ b/check-licenses/action.yml @@ -204,7 +204,7 @@ runs: - name: "Set up Python" if: inputs.skip-install == 'false' - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-vulnerabilities/action.yml b/check-vulnerabilities/action.yml index 428469fab..1785b3772 100644 --- a/check-vulnerabilities/action.yml +++ b/check-vulnerabilities/action.yml @@ -282,7 +282,7 @@ runs: Set up python to check vulnerabilities. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/code-style/action.yml b/code-style/action.yml index d38b51b17..f6ef864f9 100644 --- a/code-style/action.yml +++ b/code-style/action.yml @@ -196,7 +196,7 @@ runs: Set up python to check code style. - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-build/action.yml b/doc-build/action.yml index f847bda7c..925f0d9ce 100644 --- a/doc-build/action.yml +++ b/doc-build/action.yml @@ -235,7 +235,7 @@ runs: if: ${{ inputs.checkout == 'true' }} - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-changelog/action.yml b/doc-changelog/action.yml index 6d606339e..b0663766e 100644 --- a/doc-changelog/action.yml +++ b/doc-changelog/action.yml @@ -190,7 +190,7 @@ runs: token: ${{ inputs.token }} # zizmor: ignore[artipacked] , credentials should be persisted - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-changelog/action.yml b/doc-deploy-changelog/action.yml index 0e22442b4..01a81e7ad 100644 --- a/doc-deploy-changelog/action.yml +++ b/doc-deploy-changelog/action.yml @@ -206,7 +206,7 @@ runs: fetch-depth: 0 # zizmor: ignore[artipacked] , credentials must be persisted in this case - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-stable/action.yml b/doc-deploy-stable/action.yml index c7a5dde28..ec9c5458d 100644 --- a/doc-deploy-stable/action.yml +++ b/doc-deploy-stable/action.yml @@ -206,7 +206,7 @@ runs: 'release/.'. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/hk-package-clean-except/action.yml b/hk-package-clean-except/action.yml index c89a4225f..cd79c2461 100644 --- a/hk-package-clean-except/action.yml +++ b/hk-package-clean-except/action.yml @@ -90,7 +90,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: '3.13' use-cache: false diff --git a/hk-package-clean-untagged/action.yml b/hk-package-clean-untagged/action.yml index b15326d55..014753e99 100644 --- a/hk-package-clean-untagged/action.yml +++ b/hk-package-clean-untagged/action.yml @@ -81,7 +81,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: '3.13' use-cache: false diff --git a/release-github/action.yml b/release-github/action.yml index 656d5500d..a5391d55c 100644 --- a/release-github/action.yml +++ b/release-github/action.yml @@ -353,7 +353,7 @@ runs: run: ls -R dist/ - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/tests-pytest/action.yml b/tests-pytest/action.yml index e1e1e4537..e70e59194 100644 --- a/tests-pytest/action.yml +++ b/tests-pytest/action.yml @@ -188,7 +188,7 @@ runs: Set up python to test. - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} From 1e43cd7b973cc3c4dd2fb7b5ee8783f0b6495bbc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Thu, 19 Mar 2026 16:19:14 +0100 Subject: [PATCH 05/12] fix: specify shell bash --- _setup-python/action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/_setup-python/action.yml b/_setup-python/action.yml index b734939ab..1a2bca398 100644 --- a/_setup-python/action.yml +++ b/_setup-python/action.yml @@ -113,4 +113,5 @@ runs: - name: Install Python with uv if: ${{ inputs.provision-uv == 'true' && inputs.use-uv-python == 'true' }} + shell: bash run: uv pip install --python=${{ inputs.python-version }} From d86bf4fc47f17fe0ad9023b8e8056e441db3db26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Thu, 19 Mar 2026 16:24:12 +0100 Subject: [PATCH 06/12] fix: wrong uv install command --- _setup-python/action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/_setup-python/action.yml b/_setup-python/action.yml index 1a2bca398..b737a7388 100644 --- a/_setup-python/action.yml +++ b/_setup-python/action.yml @@ -114,4 +114,4 @@ runs: - name: Install Python with uv if: ${{ inputs.provision-uv == 'true' && inputs.use-uv-python == 'true' }} shell: bash - run: uv pip install --python=${{ inputs.python-version }} + run: uv python install ${{ inputs.python-version }} From 1207a180571121f3737a259e1dceabe21030080f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Thu, 19 Mar 2026 16:47:58 +0100 Subject: [PATCH 07/12] Revert "tbr: fix point to the dev branch" This reverts commit 1235234624a56c31b7a94a928936c3e8de29cf2c. --- _release-pypi/action.yml | 2 +- build-library/action.yml | 2 +- build-wheelhouse/action.yml | 2 +- check-licenses/action.yml | 2 +- check-vulnerabilities/action.yml | 2 +- code-style/action.yml | 2 +- doc-build/action.yml | 2 +- doc-changelog/action.yml | 2 +- doc-deploy-changelog/action.yml | 2 +- doc-deploy-stable/action.yml | 2 +- hk-package-clean-except/action.yml | 2 +- hk-package-clean-untagged/action.yml | 2 +- release-github/action.yml | 2 +- tests-pytest/action.yml | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/_release-pypi/action.yml b/_release-pypi/action.yml index 55483b36b..339f0853a 100644 --- a/_release-pypi/action.yml +++ b/_release-pypi/action.yml @@ -137,7 +137,7 @@ runs: echo "::notice::We recommend using trusted publishers to securely publish packages on PyPI. You should consider moving to this approach." - name: "Set up Python" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/build-library/action.yml b/build-library/action.yml index c9b1ebe57..3c271f083 100644 --- a/build-library/action.yml +++ b/build-library/action.yml @@ -157,7 +157,7 @@ runs: fetch-tags: ${{ inputs.checkout-fetch-tags }} - name: "Set up Python" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/build-wheelhouse/action.yml b/build-wheelhouse/action.yml index 37fb89185..693b15d60 100644 --- a/build-wheelhouse/action.yml +++ b/build-wheelhouse/action.yml @@ -178,7 +178,7 @@ runs: persist-credentials: false - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-licenses/action.yml b/check-licenses/action.yml index fdc047acd..695da84db 100644 --- a/check-licenses/action.yml +++ b/check-licenses/action.yml @@ -204,7 +204,7 @@ runs: - name: "Set up Python" if: inputs.skip-install == 'false' - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-vulnerabilities/action.yml b/check-vulnerabilities/action.yml index 1785b3772..428469fab 100644 --- a/check-vulnerabilities/action.yml +++ b/check-vulnerabilities/action.yml @@ -282,7 +282,7 @@ runs: Set up python to check vulnerabilities. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/code-style/action.yml b/code-style/action.yml index f6ef864f9..d38b51b17 100644 --- a/code-style/action.yml +++ b/code-style/action.yml @@ -196,7 +196,7 @@ runs: Set up python to check code style. - name: "Set up Python" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-build/action.yml b/doc-build/action.yml index 925f0d9ce..f847bda7c 100644 --- a/doc-build/action.yml +++ b/doc-build/action.yml @@ -235,7 +235,7 @@ runs: if: ${{ inputs.checkout == 'true' }} - name: "Set up Python" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-changelog/action.yml b/doc-changelog/action.yml index b0663766e..6d606339e 100644 --- a/doc-changelog/action.yml +++ b/doc-changelog/action.yml @@ -190,7 +190,7 @@ runs: token: ${{ inputs.token }} # zizmor: ignore[artipacked] , credentials should be persisted - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-changelog/action.yml b/doc-deploy-changelog/action.yml index 01a81e7ad..0e22442b4 100644 --- a/doc-deploy-changelog/action.yml +++ b/doc-deploy-changelog/action.yml @@ -206,7 +206,7 @@ runs: fetch-depth: 0 # zizmor: ignore[artipacked] , credentials must be persisted in this case - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-stable/action.yml b/doc-deploy-stable/action.yml index ec9c5458d..c7a5dde28 100644 --- a/doc-deploy-stable/action.yml +++ b/doc-deploy-stable/action.yml @@ -206,7 +206,7 @@ runs: 'release/.'. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/hk-package-clean-except/action.yml b/hk-package-clean-except/action.yml index cd79c2461..c89a4225f 100644 --- a/hk-package-clean-except/action.yml +++ b/hk-package-clean-except/action.yml @@ -90,7 +90,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: '3.13' use-cache: false diff --git a/hk-package-clean-untagged/action.yml b/hk-package-clean-untagged/action.yml index 014753e99..b15326d55 100644 --- a/hk-package-clean-untagged/action.yml +++ b/hk-package-clean-untagged/action.yml @@ -81,7 +81,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: '3.13' use-cache: false diff --git a/release-github/action.yml b/release-github/action.yml index a5391d55c..656d5500d 100644 --- a/release-github/action.yml +++ b/release-github/action.yml @@ -353,7 +353,7 @@ runs: run: ls -R dist/ - name: "Set up Python" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/tests-pytest/action.yml b/tests-pytest/action.yml index e70e59194..e1e1e4537 100644 --- a/tests-pytest/action.yml +++ b/tests-pytest/action.yml @@ -188,7 +188,7 @@ runs: Set up python to test. - name: "Set up Python" - uses: ansys/actions/_setup-python@feat/install-python-with-uv + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} From b321d45e679493880f6eb2af4cd6b0ce62f50cfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Thu, 19 Mar 2026 16:48:05 +0100 Subject: [PATCH 08/12] Revert "tbr: point to the dev branch" This reverts commit 2aef3c51b900aea7e048d066ac08874a274688b2. --- _release-pypi/action.yml | 2 +- build-library/action.yml | 2 +- build-wheelhouse/action.yml | 2 +- check-licenses/action.yml | 2 +- check-vulnerabilities/action.yml | 2 +- code-style/action.yml | 2 +- doc-build/action.yml | 2 +- doc-changelog/action.yml | 2 +- doc-deploy-changelog/action.yml | 2 +- doc-deploy-stable/action.yml | 2 +- hk-package-clean-except/action.yml | 2 +- hk-package-clean-untagged/action.yml | 2 +- release-github/action.yml | 2 +- tests-pytest/action.yml | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/_release-pypi/action.yml b/_release-pypi/action.yml index 339f0853a..627b96523 100644 --- a/_release-pypi/action.yml +++ b/_release-pypi/action.yml @@ -137,7 +137,7 @@ runs: echo "::notice::We recommend using trusted publishers to securely publish packages on PyPI. You should consider moving to this approach." - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/build-library/action.yml b/build-library/action.yml index 3c271f083..a1c62fd4f 100644 --- a/build-library/action.yml +++ b/build-library/action.yml @@ -157,7 +157,7 @@ runs: fetch-tags: ${{ inputs.checkout-fetch-tags }} - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/build-wheelhouse/action.yml b/build-wheelhouse/action.yml index 693b15d60..0061d38ab 100644 --- a/build-wheelhouse/action.yml +++ b/build-wheelhouse/action.yml @@ -178,7 +178,7 @@ runs: persist-credentials: false - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-licenses/action.yml b/check-licenses/action.yml index 695da84db..13f9667fd 100644 --- a/check-licenses/action.yml +++ b/check-licenses/action.yml @@ -204,7 +204,7 @@ runs: - name: "Set up Python" if: inputs.skip-install == 'false' - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-vulnerabilities/action.yml b/check-vulnerabilities/action.yml index 428469fab..6ef8e55b2 100644 --- a/check-vulnerabilities/action.yml +++ b/check-vulnerabilities/action.yml @@ -282,7 +282,7 @@ runs: Set up python to check vulnerabilities. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/code-style/action.yml b/code-style/action.yml index d38b51b17..6ffe5e596 100644 --- a/code-style/action.yml +++ b/code-style/action.yml @@ -196,7 +196,7 @@ runs: Set up python to check code style. - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-build/action.yml b/doc-build/action.yml index f847bda7c..90949d90e 100644 --- a/doc-build/action.yml +++ b/doc-build/action.yml @@ -235,7 +235,7 @@ runs: if: ${{ inputs.checkout == 'true' }} - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-changelog/action.yml b/doc-changelog/action.yml index 6d606339e..9a8210a64 100644 --- a/doc-changelog/action.yml +++ b/doc-changelog/action.yml @@ -190,7 +190,7 @@ runs: token: ${{ inputs.token }} # zizmor: ignore[artipacked] , credentials should be persisted - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-changelog/action.yml b/doc-deploy-changelog/action.yml index 0e22442b4..11d1eeb81 100644 --- a/doc-deploy-changelog/action.yml +++ b/doc-deploy-changelog/action.yml @@ -206,7 +206,7 @@ runs: fetch-depth: 0 # zizmor: ignore[artipacked] , credentials must be persisted in this case - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-stable/action.yml b/doc-deploy-stable/action.yml index c7a5dde28..e96b00696 100644 --- a/doc-deploy-stable/action.yml +++ b/doc-deploy-stable/action.yml @@ -206,7 +206,7 @@ runs: 'release/.'. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/hk-package-clean-except/action.yml b/hk-package-clean-except/action.yml index c89a4225f..3f061078a 100644 --- a/hk-package-clean-except/action.yml +++ b/hk-package-clean-except/action.yml @@ -90,7 +90,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: '3.13' use-cache: false diff --git a/hk-package-clean-untagged/action.yml b/hk-package-clean-untagged/action.yml index b15326d55..2d73bd9d1 100644 --- a/hk-package-clean-untagged/action.yml +++ b/hk-package-clean-untagged/action.yml @@ -81,7 +81,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: '3.13' use-cache: false diff --git a/release-github/action.yml b/release-github/action.yml index 656d5500d..d73b02f3e 100644 --- a/release-github/action.yml +++ b/release-github/action.yml @@ -353,7 +353,7 @@ runs: run: ls -R dist/ - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/tests-pytest/action.yml b/tests-pytest/action.yml index e1e1e4537..d792f4647 100644 --- a/tests-pytest/action.yml +++ b/tests-pytest/action.yml @@ -188,7 +188,7 @@ runs: Set up python to test. - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@main with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} From 6c27fd9f4549b144b01644e4298d2fa4023ed9a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Thu, 19 Mar 2026 16:14:47 +0100 Subject: [PATCH 09/12] tbr: point to the dev branch --- _release-pypi/action.yml | 2 +- build-library/action.yml | 2 +- build-wheelhouse/action.yml | 2 +- check-licenses/action.yml | 2 +- check-vulnerabilities/action.yml | 2 +- code-style/action.yml | 2 +- doc-build/action.yml | 2 +- doc-changelog/action.yml | 2 +- doc-deploy-changelog/action.yml | 2 +- doc-deploy-stable/action.yml | 2 +- hk-package-clean-except/action.yml | 2 +- hk-package-clean-untagged/action.yml | 2 +- release-github/action.yml | 2 +- tests-pytest/action.yml | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/_release-pypi/action.yml b/_release-pypi/action.yml index 627b96523..339f0853a 100644 --- a/_release-pypi/action.yml +++ b/_release-pypi/action.yml @@ -137,7 +137,7 @@ runs: echo "::notice::We recommend using trusted publishers to securely publish packages on PyPI. You should consider moving to this approach." - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/build-library/action.yml b/build-library/action.yml index a1c62fd4f..3c271f083 100644 --- a/build-library/action.yml +++ b/build-library/action.yml @@ -157,7 +157,7 @@ runs: fetch-tags: ${{ inputs.checkout-fetch-tags }} - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/build-wheelhouse/action.yml b/build-wheelhouse/action.yml index 0061d38ab..693b15d60 100644 --- a/build-wheelhouse/action.yml +++ b/build-wheelhouse/action.yml @@ -178,7 +178,7 @@ runs: persist-credentials: false - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-licenses/action.yml b/check-licenses/action.yml index 13f9667fd..695da84db 100644 --- a/check-licenses/action.yml +++ b/check-licenses/action.yml @@ -204,7 +204,7 @@ runs: - name: "Set up Python" if: inputs.skip-install == 'false' - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-vulnerabilities/action.yml b/check-vulnerabilities/action.yml index 6ef8e55b2..428469fab 100644 --- a/check-vulnerabilities/action.yml +++ b/check-vulnerabilities/action.yml @@ -282,7 +282,7 @@ runs: Set up python to check vulnerabilities. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/code-style/action.yml b/code-style/action.yml index 6ffe5e596..d38b51b17 100644 --- a/code-style/action.yml +++ b/code-style/action.yml @@ -196,7 +196,7 @@ runs: Set up python to check code style. - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-build/action.yml b/doc-build/action.yml index 90949d90e..f847bda7c 100644 --- a/doc-build/action.yml +++ b/doc-build/action.yml @@ -235,7 +235,7 @@ runs: if: ${{ inputs.checkout == 'true' }} - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-changelog/action.yml b/doc-changelog/action.yml index 9a8210a64..6d606339e 100644 --- a/doc-changelog/action.yml +++ b/doc-changelog/action.yml @@ -190,7 +190,7 @@ runs: token: ${{ inputs.token }} # zizmor: ignore[artipacked] , credentials should be persisted - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-changelog/action.yml b/doc-deploy-changelog/action.yml index 11d1eeb81..0e22442b4 100644 --- a/doc-deploy-changelog/action.yml +++ b/doc-deploy-changelog/action.yml @@ -206,7 +206,7 @@ runs: fetch-depth: 0 # zizmor: ignore[artipacked] , credentials must be persisted in this case - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-stable/action.yml b/doc-deploy-stable/action.yml index e96b00696..c7a5dde28 100644 --- a/doc-deploy-stable/action.yml +++ b/doc-deploy-stable/action.yml @@ -206,7 +206,7 @@ runs: 'release/.'. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/hk-package-clean-except/action.yml b/hk-package-clean-except/action.yml index 3f061078a..c89a4225f 100644 --- a/hk-package-clean-except/action.yml +++ b/hk-package-clean-except/action.yml @@ -90,7 +90,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: '3.13' use-cache: false diff --git a/hk-package-clean-untagged/action.yml b/hk-package-clean-untagged/action.yml index 2d73bd9d1..b15326d55 100644 --- a/hk-package-clean-untagged/action.yml +++ b/hk-package-clean-untagged/action.yml @@ -81,7 +81,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: '3.13' use-cache: false diff --git a/release-github/action.yml b/release-github/action.yml index d73b02f3e..656d5500d 100644 --- a/release-github/action.yml +++ b/release-github/action.yml @@ -353,7 +353,7 @@ runs: run: ls -R dist/ - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/tests-pytest/action.yml b/tests-pytest/action.yml index d792f4647..e1e1e4537 100644 --- a/tests-pytest/action.yml +++ b/tests-pytest/action.yml @@ -188,7 +188,7 @@ runs: Set up python to test. - name: "Set up Python" - uses: ansys/actions/_setup-python@main + uses: ansys/actions/_setup-python@install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} From ac52711d51d06c2217c9105f22b8823505cfd792 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Thu, 19 Mar 2026 16:17:10 +0100 Subject: [PATCH 10/12] tbr: fix point to the dev branch --- _release-pypi/action.yml | 2 +- build-library/action.yml | 2 +- build-wheelhouse/action.yml | 2 +- check-licenses/action.yml | 2 +- check-vulnerabilities/action.yml | 2 +- code-style/action.yml | 2 +- doc-build/action.yml | 2 +- doc-changelog/action.yml | 2 +- doc-deploy-changelog/action.yml | 2 +- doc-deploy-stable/action.yml | 2 +- hk-package-clean-except/action.yml | 2 +- hk-package-clean-untagged/action.yml | 2 +- release-github/action.yml | 2 +- tests-pytest/action.yml | 2 +- 14 files changed, 14 insertions(+), 14 deletions(-) diff --git a/_release-pypi/action.yml b/_release-pypi/action.yml index 339f0853a..55483b36b 100644 --- a/_release-pypi/action.yml +++ b/_release-pypi/action.yml @@ -137,7 +137,7 @@ runs: echo "::notice::We recommend using trusted publishers to securely publish packages on PyPI. You should consider moving to this approach." - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/build-library/action.yml b/build-library/action.yml index 3c271f083..c9b1ebe57 100644 --- a/build-library/action.yml +++ b/build-library/action.yml @@ -157,7 +157,7 @@ runs: fetch-tags: ${{ inputs.checkout-fetch-tags }} - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/build-wheelhouse/action.yml b/build-wheelhouse/action.yml index 693b15d60..37fb89185 100644 --- a/build-wheelhouse/action.yml +++ b/build-wheelhouse/action.yml @@ -178,7 +178,7 @@ runs: persist-credentials: false - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-licenses/action.yml b/check-licenses/action.yml index 695da84db..fdc047acd 100644 --- a/check-licenses/action.yml +++ b/check-licenses/action.yml @@ -204,7 +204,7 @@ runs: - name: "Set up Python" if: inputs.skip-install == 'false' - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/check-vulnerabilities/action.yml b/check-vulnerabilities/action.yml index 428469fab..1785b3772 100644 --- a/check-vulnerabilities/action.yml +++ b/check-vulnerabilities/action.yml @@ -282,7 +282,7 @@ runs: Set up python to check vulnerabilities. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: false diff --git a/code-style/action.yml b/code-style/action.yml index d38b51b17..f6ef864f9 100644 --- a/code-style/action.yml +++ b/code-style/action.yml @@ -196,7 +196,7 @@ runs: Set up python to check code style. - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-build/action.yml b/doc-build/action.yml index f847bda7c..925f0d9ce 100644 --- a/doc-build/action.yml +++ b/doc-build/action.yml @@ -235,7 +235,7 @@ runs: if: ${{ inputs.checkout == 'true' }} - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-changelog/action.yml b/doc-changelog/action.yml index 6d606339e..b0663766e 100644 --- a/doc-changelog/action.yml +++ b/doc-changelog/action.yml @@ -190,7 +190,7 @@ runs: token: ${{ inputs.token }} # zizmor: ignore[artipacked] , credentials should be persisted - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-changelog/action.yml b/doc-deploy-changelog/action.yml index 0e22442b4..01a81e7ad 100644 --- a/doc-deploy-changelog/action.yml +++ b/doc-deploy-changelog/action.yml @@ -206,7 +206,7 @@ runs: fetch-depth: 0 # zizmor: ignore[artipacked] , credentials must be persisted in this case - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/doc-deploy-stable/action.yml b/doc-deploy-stable/action.yml index c7a5dde28..ec9c5458d 100644 --- a/doc-deploy-stable/action.yml +++ b/doc-deploy-stable/action.yml @@ -206,7 +206,7 @@ runs: 'release/.'. - name: "Set up Python ${{ inputs.python-version }}" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/hk-package-clean-except/action.yml b/hk-package-clean-except/action.yml index c89a4225f..cd79c2461 100644 --- a/hk-package-clean-except/action.yml +++ b/hk-package-clean-except/action.yml @@ -90,7 +90,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: '3.13' use-cache: false diff --git a/hk-package-clean-untagged/action.yml b/hk-package-clean-untagged/action.yml index b15326d55..014753e99 100644 --- a/hk-package-clean-untagged/action.yml +++ b/hk-package-clean-untagged/action.yml @@ -81,7 +81,7 @@ runs: up in a separate step.' - name: "Set up Python 3.13" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: '3.13' use-cache: false diff --git a/release-github/action.yml b/release-github/action.yml index 656d5500d..a5391d55c 100644 --- a/release-github/action.yml +++ b/release-github/action.yml @@ -353,7 +353,7 @@ runs: run: ls -R dist/ - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} diff --git a/tests-pytest/action.yml b/tests-pytest/action.yml index e1e1e4537..e70e59194 100644 --- a/tests-pytest/action.yml +++ b/tests-pytest/action.yml @@ -188,7 +188,7 @@ runs: Set up python to test. - name: "Set up Python" - uses: ansys/actions/_setup-python@install-python-with-uv + uses: ansys/actions/_setup-python@feat/install-python-with-uv with: python-version: ${{ inputs.python-version }} use-cache: ${{ inputs.use-python-cache }} From a42f7771e4a20fc056e132c71a7c0332be94bf5a Mon Sep 17 00:00:00 2001 From: pyansys-ci-bot <92810346+pyansys-ci-bot@users.noreply.github.com> Date: Fri, 20 Mar 2026 08:14:39 +0000 Subject: [PATCH 11/12] chore: adding changelog file 1219.added.md [dependabot-skip] --- doc/source/changelog/1219.added.md | 1 + 1 file changed, 1 insertion(+) create mode 100644 doc/source/changelog/1219.added.md diff --git a/doc/source/changelog/1219.added.md b/doc/source/changelog/1219.added.md new file mode 100644 index 000000000..09bd63c28 --- /dev/null +++ b/doc/source/changelog/1219.added.md @@ -0,0 +1 @@ +Install python with uv From 28f390da6b4eeec6848a25b52408cf8a45388db8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Morais?= Date: Fri, 20 Mar 2026 09:22:28 +0100 Subject: [PATCH 12/12] fix: use env variable instead of input --- _setup-python/action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/_setup-python/action.yml b/_setup-python/action.yml index b737a7388..46ec749ac 100644 --- a/_setup-python/action.yml +++ b/_setup-python/action.yml @@ -113,5 +113,7 @@ runs: - name: Install Python with uv if: ${{ inputs.provision-uv == 'true' && inputs.use-uv-python == 'true' }} + env: + PYTHON_VERSION: ${{ inputs.python-version }} shell: bash - run: uv python install ${{ inputs.python-version }} + run: uv python install ${PYTHON_VERSION}