Skip to content

Commit

Permalink
refactor to uv
Browse files Browse the repository at this point in the history
Signed-off-by: Austin Liu <[email protected]>
  • Loading branch information
austin362667 committed May 19, 2024
1 parent 6f7516c commit 68fc16a
Showing 1 changed file with 15 additions and 13 deletions.
28 changes: 15 additions & 13 deletions .github/workflows/pythonbuild.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 68fc16a

Please sign in to comment.