Skip to content

Commit b1c5e04

Browse files
committed
chore: use uv pip for CI runs
1 parent cf1e893 commit b1c5e04

File tree

1 file changed

+21
-17
lines changed

1 file changed

+21
-17
lines changed

.github/workflows/ci.yml

+21-17
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,13 @@ jobs:
5858
5959
- name: Installation - *nix
6060
run: |
61-
python -m pip install --upgrade pip wheel
61+
uv pip install --upgrade wheel
6262
export LD_LIBRARY_PATH=${HOME}/dependencies/lib:$LD_LIBRARY_PATH
6363
export TA_LIBRARY_PATH=${HOME}/dependencies/lib
6464
export TA_INCLUDE_PATH=${HOME}/dependencies/include
65-
pip install -r requirements-dev.txt
66-
pip install -e ft_client/
67-
pip install -e .
65+
uv pip install -r requirements-dev.txt
66+
uv pip install -e ft_client/
67+
uv pip install -e .
6868
6969
- name: Check for version alignment
7070
run: |
@@ -211,13 +211,13 @@ jobs:
211211
212212
- name: Installation (python)
213213
run: |
214-
python -m pip install --upgrade pip wheel
214+
uv pip install wheel
215215
export LD_LIBRARY_PATH=${HOME}/dependencies/lib:$LD_LIBRARY_PATH
216216
export TA_LIBRARY_PATH=${HOME}/dependencies/lib
217217
export TA_INCLUDE_PATH=${HOME}/dependencies/include
218-
pip install -r requirements-dev.txt
219-
pip install -e ft_client/
220-
pip install -e .
218+
uv pip install -r requirements-dev.txt
219+
uv pip install -e ft_client/
220+
uv pip install -e .
221221
222222
- name: Tests
223223
run: |
@@ -426,18 +426,22 @@ jobs:
426426
with:
427427
python-version: "3.12"
428428

429+
- name: Install uv
430+
uses: astral-sh/setup-uv@v5
431+
with:
432+
enable-cache: true
433+
python-version: "3.12"
434+
cache-dependency-glob: "requirements**.txt"
435+
cache-suffix: "3.12"
436+
prune-cache: false
437+
429438
- name: Cache_dependencies
430439
uses: actions/cache@v4
431440
id: cache
432441
with:
433442
path: ~/dependencies/
434443
key: ${{ runner.os }}-dependencies
435444

436-
- name: pip cache (linux)
437-
uses: actions/cache@v4
438-
with:
439-
path: ~/.cache/pip
440-
key: pip-3.12-ubuntu
441445

442446
- name: TA binary *nix
443447
if: steps.cache.outputs.cache-hit != 'true'
@@ -446,13 +450,13 @@ jobs:
446450
447451
- name: Installation - *nix
448452
run: |
449-
python -m pip install --upgrade pip wheel
453+
uv pip install --upgrade wheel
450454
export LD_LIBRARY_PATH=${HOME}/dependencies/lib:$LD_LIBRARY_PATH
451455
export TA_LIBRARY_PATH=${HOME}/dependencies/lib
452456
export TA_INCLUDE_PATH=${HOME}/dependencies/include
453-
pip install -r requirements-dev.txt
454-
pip install -e ft_client/
455-
pip install -e .
457+
uv pip install -r requirements-dev.txt
458+
uv pip install -e ft_client/
459+
uv pip install -e .
456460
457461
- name: Tests incl. ccxt compatibility tests
458462
env:

0 commit comments

Comments
 (0)