From 6c6e8f1c7610795502cf85baced08d261cdca9c0 Mon Sep 17 00:00:00 2001 From: Huong Nguyen <32060364+Huongg@users.noreply.github.com> Date: Tue, 26 Nov 2024 11:13:00 +0000 Subject: [PATCH] [DRAFT] use uv to install dependencies (#2204) * use uv to install dependencies Signed-off-by: Huong Nguyen * include install uv before run it Signed-off-by: Huong Nguyen * install uv in setup test Signed-off-by: Huong Nguyen * combine uv and install dependencies Signed-off-by: Huong Nguyen * try --system to install dependencies Signed-off-by: Huong Nguyen * fix formatting Signed-off-by: Sajid Alam * remove uv install from setup Signed-off-by: Sajid Alam * only install node and fe dependencies if e2e tests run Signed-off-by: Huong Nguyen * remove the condition as it will be done in a separate ticket Signed-off-by: Huong Nguyen * Extra line at the end Signed-off-by: Huong Nguyen --------- Signed-off-by: Huong Nguyen Signed-off-by: Sajid Alam Signed-off-by: Huong Nguyen Co-authored-by: Huong Nguyen Co-authored-by: Sajid Alam Co-authored-by: Huong Nguyen --- .../action.yml | 24 +++++++++++-------- 1 file changed, 14 insertions(+), 10 deletions(-) diff --git a/.github/actions/install_kedro_and_python_dependencies/action.yml b/.github/actions/install_kedro_and_python_dependencies/action.yml index 3874ccdc20..3d41b0da78 100644 --- a/.github/actions/install_kedro_and_python_dependencies/action.yml +++ b/.github/actions/install_kedro_and_python_dependencies/action.yml @@ -3,13 +3,17 @@ description: Installs Kedro from the main branch and other Python dependencies, runs: using: composite steps: - - name: Install Python dependencies - run: |- - pip install git+https://github.com/kedro-org/kedro@main - pip install -r package/test_requirements.txt -r demo-project/src/docker_requirements.txt -U - shell: bash - - name: Echo package versions - run: |- - python -V - pip freeze - shell: bash \ No newline at end of file + - name: Install `uv` + run: | + python -m pip install "uv==0.5.4" + shell: bash + - name: Install Python dependencies + run: |- + uv pip install --system git+https://github.com/kedro-org/kedro@main + uv pip install --system -r package/test_requirements.txt -r demo-project/src/docker_requirements.txt -U + shell: bash + - name: Echo package versions + run: |- + python -V + pip freeze + shell: bash