From 9633e951d468c7aaec93814ec9774683a4aeceae Mon Sep 17 00:00:00 2001 From: Mariam Ahhttouche Date: Tue, 10 Mar 2026 15:54:27 +0000 Subject: [PATCH] Add task to uv_python tests to add uv installation directory to PATH --- tests/integration/targets/uv_python/tasks/main.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/tests/integration/targets/uv_python/tasks/main.yaml b/tests/integration/targets/uv_python/tasks/main.yaml index 7b3fee5a00..9ae3c967ed 100644 --- a/tests/integration/targets/uv_python/tasks/main.yaml +++ b/tests/integration/targets/uv_python/tasks/main.yaml @@ -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: