1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-22 05:09:12 +00:00

uv_python module: add integration test for when uv executable does not exist

This commit is contained in:
Mariam Ahhttouche 2026-02-16 11:38:07 +01:00
parent ee79011e9c
commit 7610b82e00

View file

@ -8,6 +8,20 @@
# GNU General Public License v3.0+ (see LICENSES/GPL-3.0-or-later.txt or https://www.gnu.org/licenses/gpl-3.0.txt)
# SPDX-License-Identifier: GPL-3.0-or-later
- name: Install python 3.14 when no uv executable exists
uv_python:
version: 3.14
state: present
check_mode: yes
register: failed_install
ignore_errors: true
- name: Verify python 3.14 installation failed
assert:
that:
- failed_install["failed"] is true
- '"Failed to find required executable" in failed_install["msg"]'
- name: Install uv
shell: |
curl -LsSf https://astral.sh/uv/install.sh | sh