From 68fc16abc1848aadfdfda3e1f450eb6eb6831d9b Mon Sep 17 00:00:00 2001 From: Austin Liu Date: Thu, 16 May 2024 00:34:08 +0800 Subject: [PATCH] refactor to uv Signed-off-by: Austin Liu --- .github/workflows/pythonbuild.yml | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/.github/workflows/pythonbuild.yml b/.github/workflows/pythonbuild.yml index fec170c9c4..757120cc55 100644 --- a/.github/workflows/pythonbuild.yml +++ b/.github/workflows/pythonbuild.yml @@ -175,17 +175,18 @@ jobs: path: ~/.cache/pip # Look to see if there is a cache hit for the corresponding requirements files key: ${{ format('{0}-pip-{1}', runner.os, hashFiles('dev-requirements.in', 'requirements.in')) }} + - name: Install dependencies + run: | + pip install uv + make setup-global-uv + uv pip uninstall --system grpcio grpcio-status - name: Build and Install Rust client working-directory: flyrs run: | - pip install maturin + uv pip install maturin maturin build --release --out dist --interpreter python ${{ env.python_versions }} - pip install $(find ./dist -name '*.whl' | head -n 1) - - name: Install dependencies - run: | - make setup - pip uninstall -y grpcio grpcio-status - pip freeze + uv pip install $(find ./dist -name '*.whl' | head -n 1) + uv pip freeze - name: Install FlyteCTL uses: unionai-oss/flytectl-setup-action@master - name: Setup Flyte Sandbox @@ -223,16 +224,17 @@ jobs: path: ~/.cache/pip # Look to see if there is a cache hit for the corresponding requirements files key: ${{ format('{0}-pip-{1}', runner.os, hashFiles('dev-requirements.in', 'requirements.in')) }} + - name: Install dependencies + run: | + pip install uv + make setup-global-uv - name: Build and Install Rust client working-directory: flyrs run: | - pip install maturin + uv pip install maturin maturin build --release --out dist --interpreter python ${{ env.python_versions }} - pip install $(find ./dist -name '*.whl' | head -n 1) - - name: Install dependencies - run: | - make setup - pip freeze + uv pip install $(find ./dist -name '*.whl' | head -n 1) + uv pip freeze - name: Install FlyteCTL uses: unionai-oss/flytectl-setup-action@master - name: Setup Flyte Sandbox