From b1c5e0458ce0af69c11e6c9366b5aa15f24fe8e3 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sat, 11 Jan 2025 14:47:34 +0100 Subject: [PATCH] chore: use uv pip for CI runs --- .github/workflows/ci.yml | 38 +++++++++++++++++++++----------------- 1 file changed, 21 insertions(+), 17 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 690098735..1fc0f0d95 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -58,13 +58,13 @@ jobs: - name: Installation - *nix run: | - python -m pip install --upgrade pip wheel + uv pip install --upgrade wheel export LD_LIBRARY_PATH=${HOME}/dependencies/lib:$LD_LIBRARY_PATH export TA_LIBRARY_PATH=${HOME}/dependencies/lib export TA_INCLUDE_PATH=${HOME}/dependencies/include - pip install -r requirements-dev.txt - pip install -e ft_client/ - pip install -e . + uv pip install -r requirements-dev.txt + uv pip install -e ft_client/ + uv pip install -e . - name: Check for version alignment run: | @@ -211,13 +211,13 @@ jobs: - name: Installation (python) run: | - python -m pip install --upgrade pip wheel + uv pip install wheel export LD_LIBRARY_PATH=${HOME}/dependencies/lib:$LD_LIBRARY_PATH export TA_LIBRARY_PATH=${HOME}/dependencies/lib export TA_INCLUDE_PATH=${HOME}/dependencies/include - pip install -r requirements-dev.txt - pip install -e ft_client/ - pip install -e . + uv pip install -r requirements-dev.txt + uv pip install -e ft_client/ + uv pip install -e . - name: Tests run: | @@ -426,6 +426,15 @@ jobs: with: python-version: "3.12" + - name: Install uv + uses: astral-sh/setup-uv@v5 + with: + enable-cache: true + python-version: "3.12" + cache-dependency-glob: "requirements**.txt" + cache-suffix: "3.12" + prune-cache: false + - name: Cache_dependencies uses: actions/cache@v4 id: cache @@ -433,11 +442,6 @@ jobs: path: ~/dependencies/ key: ${{ runner.os }}-dependencies - - name: pip cache (linux) - uses: actions/cache@v4 - with: - path: ~/.cache/pip - key: pip-3.12-ubuntu - name: TA binary *nix if: steps.cache.outputs.cache-hit != 'true' @@ -446,13 +450,13 @@ jobs: - name: Installation - *nix run: | - python -m pip install --upgrade pip wheel + uv pip install --upgrade wheel export LD_LIBRARY_PATH=${HOME}/dependencies/lib:$LD_LIBRARY_PATH export TA_LIBRARY_PATH=${HOME}/dependencies/lib export TA_INCLUDE_PATH=${HOME}/dependencies/include - pip install -r requirements-dev.txt - pip install -e ft_client/ - pip install -e . + uv pip install -r requirements-dev.txt + uv pip install -e ft_client/ + uv pip install -e . - name: Tests incl. ccxt compatibility tests env: