1
0
Fork 0
mirror of https://github.com/ansible-collections/community.general.git synced 2026-03-23 05:39:11 +00:00

Add task to uv_python tests to add uv installation directory to PATH

This commit is contained in:
Mariam Ahhttouche 2026-03-10 15:54:27 +00:00
parent 51153a615c
commit 9633e951d4

View file

@ -12,10 +12,15 @@
ansible.builtin.pip:
name: uv
- name: Add uv installation directory to PATH in macOS
shell: export PATH="$(python3 -m site --user-base)/bin:$PATH"
when: ansible_facts['os_family'] == "Darwin"
- name: Check if Python 3.14 exists already
command: uv python find 3.14
ignore_errors: true
register: check_python_314_exists
changed_when: false
- name: Install Python 3.14 in check mode
uv_python:
@ -63,6 +68,7 @@
command: uv python find 3.13.5
ignore_errors: true
register: check_python_3135_exists
changed_when: false
- name: Install Python 3.13.5
uv_python: