Skip to content

Commit 57e489b

Browse files
authored
Merge pull request freqtrade#12985 from freqtrade/maint/pin_build
Pin individual installs in CI
2 parents 3e40944 + e0d55bf commit 57e489b

4 files changed

Lines changed: 22 additions & 9 deletions

File tree

.github/workflows/binance-lev-tier-update.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
python-version: "3.14"
3737

3838
- name: Install ccxt
39-
run: uv pip install ccxt orjson
39+
run: uv pip install $(grep -E "^ccxt==" requirements.txt) $(grep -E "^orjson==" requirements.txt)
4040

4141
- name: Run leverage tier update
4242
env:
@@ -55,7 +55,7 @@ jobs:
5555
Dependencies
5656
branch: update/binance-leverage-tiers
5757
title: Update Binance Leverage Tiers
58-
commit-message: "chore: update pre-commit hooks"
58+
commit-message: "chore: update binance leverage tiers"
5959
committer: Freqtrade Bot <154552126+freqtrade-bot@users.noreply.github.com>
6060
author: Freqtrade Bot <154552126+freqtrade-bot@users.noreply.github.com>
6161
body: Update binance leverage tiers.

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,6 @@ jobs:
5555
5656
- name: Installation (python)
5757
run: |
58-
uv pip install --upgrade wheel
5958
uv pip install -r requirements-dev.txt
6059
uv pip install -e ft_client/
6160
uv pip install -e .
@@ -181,11 +180,17 @@ jobs:
181180
- name: Set up Python 🐍
182181
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 #v6.2.0
183182
with:
184-
python-version: "3.12"
183+
python-version: "3.13"
184+
185+
- name: Install uv
186+
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
187+
with:
188+
activate-environment: true
189+
python-version: "3.13"
185190

186191
- name: pre-commit dependencies
187192
run: |
188-
pip install pyaml
193+
uv pip install $(grep -E "^pyyaml==" requirements-dev.txt)
189194
python build_helpers/pre_commit_update.py
190195
191196
pre-commit:
@@ -267,7 +272,6 @@ jobs:
267272

268273
- name: Installation - *nix
269274
run: |
270-
uv pip install --upgrade wheel
271275
uv pip install -r requirements-dev.txt
272276
uv pip install -e ft_client/
273277
uv pip install -e .
@@ -337,7 +341,7 @@ jobs:
337341

338342
- name: Build distribution
339343
run: |
340-
uv pip install -U build
344+
uv pip install $(grep -E "^build==" requirements-dev.txt)
341345
python -m build --sdist --wheel
342346
343347
- name: Upload artifacts 📦

.github/workflows/pre-commit-update.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,16 @@ jobs:
2727

2828
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2929
with:
30-
python-version: "3.12"
30+
python-version: "3.13"
3131

32+
- name: Install uv
33+
uses: astral-sh/setup-uv@5a095e7a2014a4212f075830d4f7277575a9d098 # v7.3.1
34+
with:
35+
activate-environment: true
36+
python-version: "3.13"
3237

3338
- name: Install pre-commit
34-
run: pip install pre-commit
39+
run: uv pip install $(grep -E "^pre-commit==" requirements-dev.txt)
3540

3641
- name: Run auto-update
3742
run: pre-commit autoupdate

requirements-dev.txt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,7 @@ types-requests==2.32.4.20260107
3030
types-tabulate==0.10.0.20260308
3131
types-python-dateutil==2.9.0.20260305
3232
pip-audit==2.10.0
33+
# For build step in CI
34+
build==1.4.2
35+
# For pre-commit-update check
36+
pyyaml==6.0.3

0 commit comments

Comments
 (0)