@@ -32,13 +32,13 @@ jobs:
3232 with :
3333 python-version : 3.12
3434
35- - name : Set up uv
36- run : python -m pip install uv
35+ - uses : astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
36+ with :
37+ version : " latest"
38+ enable-cache : true
3739
3840 - name : Check style
39- run : |
40- python -m uv pip install pre-commit
41- pre-commit run -a
41+ run : uvx pre-commit run -a
4242
4343 run_unit_tests :
4444 runs-on : ${{ matrix.os }}
@@ -96,21 +96,22 @@ jobs:
9696 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
9797 with :
9898 python-version : ${{ matrix.python-version }}
99- cache : ' pip'
10099
101- - name : Set up uv
102- run : python -m pip install uv
100+ - uses : astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
101+ with :
102+ version : " latest"
103+ enable-cache : true
103104
104105 - name : Install nox
105- run : python -m uv pip install nox[uv]
106+ run : uv tool install nox
106107
107108 - name : Run unit tests for ${{ matrix.os }} with Python ${{ matrix.python-version }}
108109 if : matrix.os != 'ubuntu-latest' || matrix.python-version != '3.12'
109- run : python -m nox -s unit
110+ run : nox -s unit
110111
111112 - name : Run coverage tests for ${{ matrix.os }} with Python ${{ matrix.python-version }}
112113 if : matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
113- run : python -m nox -s coverage
114+ run : nox -s coverage
114115
115116 - name : Upload coverage report
116117 if : matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
@@ -120,7 +121,7 @@ jobs:
120121
121122 - name : Run integration tests for ${{ matrix.os }} with Python ${{ matrix.python-version }}
122123 if : matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
123- run : python -m nox -s integration
124+ run : nox -s integration
124125
125126 run_doctests :
126127 runs-on : ubuntu-latest
@@ -155,19 +156,20 @@ jobs:
155156 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
156157 with :
157158 python-version : 3.11
158- cache : ' pip'
159159
160- - name : Set up uv
161- run : python -m pip install uv
160+ - uses : astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
161+ with :
162+ version : " latest"
163+ enable-cache : true
162164
163165 - name : Install nox
164- run : python -m uv pip install nox[uv]
166+ run : uv tool install nox
165167
166168 - name : Install docs dependencies and run doctests for GNU/Linux
167- run : python -m nox -s doctests
169+ run : nox -s doctests
168170
169171 - name : Check if the documentation can be built for GNU/Linux
170- run : python -m nox -s docs
172+ run : nox -s docs
171173
172174 run_example_tests :
173175 runs-on : ubuntu-latest
@@ -201,16 +203,17 @@ jobs:
201203 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
202204 with :
203205 python-version : 3.12
204- cache : ' pip'
205206
206- - name : Set up uv
207- run : python -m pip install uv
207+ - uses : astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
208+ with :
209+ version : " latest"
210+ enable-cache : true
208211
209212 - name : Install nox
210- run : python -m uv pip install nox[uv]
213+ run : uv tool install nox
211214
212215 - name : Run example notebooks tests for GNU/Linux with Python 3.12
213- run : python -m nox -s examples
216+ run : nox -s examples
214217
215218 run_scripts_tests :
216219 runs-on : ubuntu-latest
@@ -244,13 +247,14 @@ jobs:
244247 uses : actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
245248 with :
246249 python-version : 3.12
247- cache : ' pip'
248250
249- - name : Set up uv
250- run : python -m pip install uv
251+ - uses : astral-sh/setup-uv@85856786d1ce8acfbcc2f13a5f3fbd6b938f9f41 # v7.1.2
252+ with :
253+ version : " latest"
254+ enable-cache : true
251255
252256 - name : Install nox
253- run : python -m uv pip install nox[uv]
257+ run : uv tool install nox
254258
255259 - name : Run example scripts tests for GNU/Linux with Python 3.12
256- run : python -m nox -s scripts
260+ run : nox -s scripts
0 commit comments