3434 - name : " Configure Git safe directory"
3535 run : git config --global --add safe.directory /__w/bdk-python/bdk-python
3636
37+ - name : " Install uv"
38+ uses : astral-sh/setup-uv@v7
39+
3740 - name : " Set up Rust"
3841 uses : actions-rust-lang/setup-rust-toolchain@v1
3942
@@ -53,18 +56,15 @@ jobs:
5356 ~/.cargo/git
5457 ./target
5558 key : ${{ runner.os }}-${{ hashFiles('**/Cargo.toml','**/Cargo.lock') }}
56-
59+
5760 - name : " Generate bdk.py and binaries"
5861 run : bash ./scripts/generate-linux.sh
5962
60- - name : " Install build"
61- run : ${PYBIN}/pip install build
62-
6363 - name : " Build wheel"
64- run : ${PYBIN}/python -m build --wheel --config-setting =--build-option=--plat-name=manylinux_2_28_x86_64 --verbose
64+ run : UV_PYTHON= ${PYBIN}/python uv build --wheel -C =--build-option=--plat-name=manylinux_2_28_x86_64 -v
6565
6666 - name : " Install wheel"
67- run : ${PYBIN}/pip install ./dist/*.whl
67+ run : uv pip install --python ${PYBIN}/python ./dist/*.whl
6868
6969 - name : " Run tests"
7070 run : ${PYBIN}/python -m unittest discover --start "./tests/" --pattern "test_offline_*.py" --verbose
8686 submodules : recursive
8787 persist-credentials : false
8888 fetch-depth : 0
89-
89+
90+ - name : " Install uv"
91+ uses : astral-sh/setup-uv@v7
92+
9093 - name : " Update bdk-ffi submodule to latest"
9194 run : |
9295 cd ./bdk-ffi/ \
@@ -106,17 +109,14 @@ jobs:
106109 - name : " Generate bdk.py and binaries"
107110 run : bash ./scripts/generate-macos-arm64.sh
108111
109- - name : " Install build"
110- run : pip3 install build
111-
112112 - name : " Build wheel"
113113 # Specifying the plat-name argument is necessary to build a wheel with the correct name,
114114 # see issue #350 for more information
115- run : python3 -m build --wheel --config-setting =--build-option=--plat-name=macosx_11_0_arm64 --verbose
115+ run : uv build --wheel -C =--build-option=--plat-name=macosx_11_0_arm64 -v
116116
117117 - name : " Install wheel"
118- run : pip3 install ./dist/*.whl
119-
118+ run : uv pip install --python python3 ./dist/*.whl
119+
120120 - name : " Run tests"
121121 run : python3 -m unittest discover --start "./tests/" --pattern "test_offline_*.py" --verbose
122122
@@ -138,6 +138,9 @@ jobs:
138138 persist-credentials : false
139139 fetch-depth : 0
140140
141+ - name : " Install uv"
142+ uses : astral-sh/setup-uv@v7
143+
141144 - name : " Update bdk-ffi submodule to latest"
142145 run : |
143146 cd ./bdk-ffi/ \
@@ -156,14 +159,11 @@ jobs:
156159 - name : " Generate bdk.py and binaries"
157160 run : bash ./scripts/generate-macos-x86_64.sh
158161
159- - name : " Install build"
160- run : pip3 install build
161-
162162 - name : " Build wheel"
163- run : python3 -m build --wheel --config-setting =--build-option=--plat-name=macosx_11_0_x86_64 --verbose
163+ run : uv build --wheel -C =--build-option=--plat-name=macosx_11_0_x86_64 -v
164164
165165 - name : " Install wheel"
166- run : pip3 install ./dist/*.whl
166+ run : uv pip install --python python3 ./dist/*.whl
167167
168168 - name : " Run tests"
169169 run : python3 -m unittest discover --start "./tests/" --pattern "test_offline_*.py" --verbose
@@ -186,17 +186,20 @@ jobs:
186186 persist-credentials : false
187187 fetch-depth : 0
188188
189+ - name : " Install uv"
190+ uses : astral-sh/setup-uv@v7
191+
189192 - name : " Update bdk-ffi submodule to latest"
190193 run : |
191- cd ./bdk-ffi/;
192- git fetch origin;
193- git checkout master;
194- git pull origin master;
194+ cd ./bdk-ffi/;
195+ git fetch origin;
196+ git checkout master;
197+ git pull origin master;
195198 echo "Testing commit: $(git log -1 --pretty=format:'%h %s (author: %cn)')"
196199
197200 - name : " Set up Rust"
198201 uses : actions-rust-lang/setup-rust-toolchain@v1
199-
202+
200203 - name : " Install Python"
201204 uses : actions/setup-python@v4
202205 with :
@@ -205,14 +208,11 @@ jobs:
205208 - name : " Generate bdk.py and binaries"
206209 run : bash ./scripts/generate-windows.sh
207210
208- - name : " Install build"
209- run : pip install build
210-
211211 - name : " Build wheel"
212- run : python -m build --wheel --verbose
212+ run : uv build --wheel -v
213213
214214 - name : " Install dependencies"
215- run : Get-ChildItem 'D:\a\bdk-python\bdk-python\dist\*.whl' | ForEach-Object {pip install $_.FullName}
215+ run : Get-ChildItem 'D:\a\bdk-python\bdk-python\dist\*.whl' | ForEach-Object {uv pip install --python python $_.FullName}
216216 shell : powershell
217217
218218 - name : " Run tests"
@@ -232,8 +232,8 @@ jobs:
232232 - name : " Configure Git safe directory"
233233 run : git config --global --add safe.directory /__w/bdk-python/bdk-python
234234
235- - name : " Install Ruff "
236- run : curl -LsSf https:// astral. sh/ruff/install.sh | sh
235+ - name : " Install uv "
236+ uses : astral- sh/setup-uv@v7
237237
238238 - name : " Lint test targets"
239- run : ruff check ./tests/
239+ run : uvx ruff check ./tests/
0 commit comments