5353 # - armv7
5454 steps :
5555 - uses : actions/checkout@v3
56-
57- - uses : actions/setup-python@v4
58- with :
59- python-version : 3.9
60-
56+ - name : Install uv
57+ uses : astral-sh/setup-uv@v6
58+
6159 - name : Install Protoc
6260 uses : arduino/setup-protoc@v2
6361 with :
@@ -84,16 +82,17 @@ jobs:
8482 install : |
8583 apt-get update
8684 apt-get install -y --no-install-recommends python3 python3-pip
87- pip3 install -U pip pytest
85+ uv sync
8886 run : |
89- pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
87+ uv pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
9088 python3 -c "import glclient;creds=glclient.Credentials();signer=glclient.Signer(b'\x00'*32,'bitcoin', creds);print(repr(creds));print(signer.version())"
9189
9290 - name : Install built wheel (native)
9391 if : matrix.target == 'x86_64'
9492 run : |
95- pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
96- python3 -c "import glclient;creds=glclient.Credentials();signer=glclient.Signer(b'\x00'*32,'bitcoin', creds);print(repr(creds));print(signer.version())"
93+ uv sync
94+ uv pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
95+ uv run python3 -c "import glclient;creds=glclient.Credentials();signer=glclient.Signer(b'\x00'*32,'bitcoin', creds);print(repr(creds));print(signer.version())"
9796
9897 - name : Upload wheels
9998 uses : actions/upload-artifact@v4
@@ -102,7 +101,7 @@ jobs:
102101 path : libs/gl-client-py/dist/
103102
104103 macos :
105- runs-on : macos-14
104+ runs-on : macos-latest
106105 strategy :
107106 fail-fast : false
108107 matrix :
@@ -114,7 +113,7 @@ jobs:
114113 - uses : actions/setup-python@v4
115114 with :
116115 python-version : 3.9
117- architecture : x64
116+
118117 - uses : dtolnay/rust-toolchain@nightly
119118
120119 - name : Install Protoc
@@ -134,10 +133,13 @@ jobs:
134133 MACOSX_DEPLOYMENT_TARGET : 10.9
135134
136135 - name : Install built wheel
136+ env :
137+ PATH : $PATH:$HOME/.local/bin
137138 if : matrix.target == 'x86_64'
138139 run : |
139- pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
140- python3 -c "import glclient;creds=glclient.Credentials();signer=glclient.Signer(b'\x00'*32,'bitcoin', creds);print(repr(creds));print(signer.version())"
140+ $HOME/.local/bin/uv sync
141+ $HOME/.local/bin/uv pip install libs/gl-client-py/dist/gl_client*.whl --force-reinstall
142+ $HOME/.local/bin/uv run python3 -c "import glclient;creds=glclient.Credentials();signer=glclient.Signer(b'\x00'*32,'bitcoin', creds);print(repr(creds));print(signer.version())"
141143
142144 - name : Upload wheels
143145 uses : actions/upload-artifact@v4
0 commit comments