Skip to content

Commit 8d0a98d

Browse files
author
Roman
committed
add rustup
1 parent e718c54 commit 8d0a98d

File tree

1 file changed

+13
-14
lines changed

1 file changed

+13
-14
lines changed

.circleci/config.yml

Lines changed: 13 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,12 @@ jobs:
3636
- run:
3737
name: Update & Activate ruff venv
3838
command: |
39+
curl https://sh.rustup.rs -sSf | sh -s -- -y
40+
. "$HOME/.cargo/env"
3941
python -m venv .venv
4042
. .venv/bin/activate
41-
python -m pip install --upgrade pip
42-
pip install ruff -c requirements/dev.txt
43+
python -m pip install --upgrade uv
44+
uv pip install ruff -c requirements/dev.txt
4345
4446
- save_cache:
4547
name: Save cached ruff venv
@@ -98,8 +100,8 @@ jobs:
98100
command: |
99101
python -m venv .venv
100102
. .venv/bin/activate
101-
python -m pip install --upgrade pip
102-
python -m pip install '.[dev]'
103+
python -m pip install --upgrade uv
104+
uv sync --all-extras --dev
103105
104106
- save_cache:
105107
name: Save cached venv
@@ -111,7 +113,7 @@ jobs:
111113
name: Install Bittensor
112114
command: |
113115
. .venv/bin/activate
114-
pip install -e '.[dev]'
116+
uv sync --all-extras --dev
115117
116118
- run:
117119
name: Instantiate Mock Wallet
@@ -189,9 +191,9 @@ jobs:
189191
command: |
190192
python -m venv .venv
191193
. .venv/bin/activate
192-
python -m pip install --upgrade pip
193-
python -m pip install '.[dev]'
194-
pip install flake8
194+
python -m pip install --upgrade uv
195+
uv sync --all-extras --dev
196+
uv pip install flake8
195197
196198
- save_cache:
197199
name: Save cached venv
@@ -203,7 +205,7 @@ jobs:
203205
name: Install Bittensor
204206
command: |
205207
. .venv/bin/activate
206-
pip install -e '.[dev]'
208+
uv sync --all-extras --dev
207209
208210
- run:
209211
name: Lint with flake8
@@ -232,7 +234,7 @@ jobs:
232234
- run:
233235
name: Combine Coverage
234236
command: |
235-
pip3 install --upgrade coveralls
237+
uv pip install --upgrade coveralls
236238
coveralls --finish --rcfile .coveragerc || echo "Failed to upload coverage"
237239
238240
check-version-updated:
@@ -290,9 +292,6 @@ workflows:
290292
- check_compatibility:
291293
python_version: "3.12"
292294
name: check-compatibility-3.12
293-
- check_compatibility:
294-
python_version: "3.13"
295-
name: check-compatibility-3.13
296295

297296

298297
pr-requirements:
@@ -340,4 +339,4 @@ workflows:
340339
filters:
341340
branches:
342341
only:
343-
- master
342+
- master

0 commit comments

Comments
 (0)