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:
parent
51153a615c
commit
9633e951d4
1 changed files with 6 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue