@@ -180,20 +180,21 @@ jobs:
180180 strategy :
181181 fail-fast : false
182182 matrix :
183- python : ["3.7", "3.12 "]
183+ python : ["3.7", "3.13 "]
184184
185185 steps :
186186 - uses : actions/checkout@v4
187- - uses : actions/setup-python@v5
188- name : Install Python ${{ matrix.python }}
189- with :
190- python-version : ${{ matrix.python }}
187+ - uses : astral-sh/setup-uv@v3
188+
189+ - name : Setup environment
190+ run : |
191+ uv venv --python ${{ matrix.python }}
192+ uv pip install pytest pytest-cov
191193
192194 - name : Install dependencies
193195 run : |
194196 sudo apt-get update
195197 sudo apt-get install -y --no-install-recommends libssl-dev
196- pip install pytest pytest-cov
197198
198199 - uses : actions/download-artifact@v4
199200 with :
@@ -204,12 +205,11 @@ jobs:
204205 env :
205206 CMAKE_ARGS : " -DBUILD_CMAKE_FROM_SOURCE:BOOL=OFF"
206207 run : |
207- pip -V
208- pip install dist/*.tar.gz
208+ uv pip install dist/*.tar.gz
209209 rm -rf dist
210210
211211 - name : Test installed SDist
212- run : pytest ./tests
212+ run : .venv/bin/ pytest ./tests
213213
214214 check_dist :
215215 name : Check dist
@@ -248,3 +248,5 @@ jobs:
248248 subject-path : " dist/cmake-*"
249249
250250 - uses : pypa/gh-action-pypi-publish@release/v1
251+ with :
252+ attestations : true
0 commit comments