chore: speed up whl install in cli tests with uv (#4764)

uv for whl install
This commit is contained in:
Sebastián Estévez 2024-11-21 12:19:18 -05:00 committed by GitHub
commit 4f27dbd918
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 390 additions and 4 deletions

View file

@ -145,13 +145,16 @@ jobs:
if: steps.check-version.outputs.skipped == 'false'
run: |
make build main=true
- name: Install wheel
- name: Install wheel and Test CLI
if: steps.check-version.outputs.skipped == 'false'
run: |
python -m pip install dist/*.whl
uv venv new-venv
source new-venv/bin/activate
uv pip install dist/*.whl
- name: Test CLI
if: steps.check-version.outputs.skipped == 'false'
run: |
source new-venv/bin/activate
python -m langflow run --host 127.0.0.1 --port 7860 --backend-only &
SERVER_PID=$!
# Wait for the server to start