@@ -94,16 +94,17 @@ jobs:
9494 - name : Install typing_inspect test dependencies
9595 run : |
9696 set -x
97+ uv venv .venv
9798 cd typing_inspect
98- uv pip install --system - r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
99+ uv pip install -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
99100 - name : Install typing_extensions latest
100- run : uv pip install --system "typing-extensions @ ./typing-extensions-latest"
101+ run : uv pip install "typing-extensions @ ./typing-extensions-latest"
101102 - name : List all installed dependencies
102103 run : uv pip freeze
103104 - name : Run typing_inspect tests
104105 run : |
105106 cd typing_inspect
106- pytest
107+ uv run pytest
107108
108109 pycroscope :
109110 name : pycroscope tests
@@ -129,10 +130,11 @@ jobs:
129130 - name : Install pycroscope test requirements
130131 run : |
131132 set -x
133+ uv venv .venv
132134 cd pycroscope
133- uv pip install --system 'pycroscope[tests] @ .' --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
135+ uv pip install 'pycroscope[tests] @ .' --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
134136 - name : Install typing_extensions latest
135- run : uv pip install --system "typing-extensions @ ./typing-extensions-latest"
137+ run : uv pip install "typing-extensions @ ./typing-extensions-latest"
136138 - name : List all installed dependencies
137139 run : uv pip freeze
138140 - name : Run pycroscope tests
@@ -164,17 +166,18 @@ jobs:
164166 - name : Install typeguard test requirements
165167 run : |
166168 set -x
169+ uv venv .venv
167170 cd typeguard
168- uv pip install --system "typeguard @ ." --group test --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
171+ uv pip install "typeguard @ ." --group test --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
169172 - name : Install typing_extensions latest
170- run : uv pip install --system "typing-extensions @ ./typing-extensions-latest"
173+ run : uv pip install "typing-extensions @ ./typing-extensions-latest"
171174 - name : List all installed dependencies
172175 run : uv pip freeze
173176 - name : Run typeguard tests
174177 run : |
175178 cd typeguard
176179 export PYTHON_COLORS=0 # A test fails if tracebacks are colorized
177- pytest
180+ uv run pytest
178181
179182 typed-argument-parser :
180183 name : typed-argument-parser tests
@@ -206,17 +209,18 @@ jobs:
206209 - name : Install typed-argument-parser test requirements
207210 run : |
208211 set -x
212+ uv venv .venv
209213 cd typed-argument-parser
210- uv pip install --system "typed-argument-parser @ ." --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
211- uv pip install --system pytest --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
214+ uv pip install "typed-argument-parser @ ." --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
215+ uv pip install pytest --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
212216 - name : Install typing_extensions latest
213- run : uv pip install --system "typing-extensions @ ./typing-extensions-latest"
217+ run : uv pip install "typing-extensions @ ./typing-extensions-latest"
214218 - name : List all installed dependencies
215219 run : uv pip freeze
216220 - name : Run typed-argument-parser tests
217221 run : |
218222 cd typed-argument-parser
219- pytest
223+ uv run pytest
220224
221225 mypy :
222226 name : stubtest & mypyc tests
@@ -242,17 +246,18 @@ jobs:
242246 - name : Install mypy test requirements
243247 run : |
244248 set -x
249+ uv venv .venv
245250 cd mypy
246- uv pip install --system - r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
247- uv pip install --system - e .
251+ uv pip install -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
252+ uv pip install -e .
248253 - name : Install typing_extensions latest
249- run : uv pip install --system "typing-extensions @ ./typing-extensions-latest"
254+ run : uv pip install "typing-extensions @ ./typing-extensions-latest"
250255 - name : List all installed dependencies
251256 run : uv pip freeze
252257 - name : Run stubtest & mypyc tests
253258 run : |
254259 cd mypy
255- pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py
260+ uv run pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py
256261
257262 cattrs :
258263 name : cattrs tests
@@ -310,18 +315,10 @@ jobs:
310315 with :
311316 path : typing-extensions-latest
312317 persist-credentials : false
313- - name : Install sqlalchemy test dependencies
314- run : uv pip install --system tox setuptools
315- - name : List installed dependencies
316- # Note: tox installs SQLAlchemy and its dependencies in a different isolated
317- # environment before running the tests. To see the dependencies installed
318- # in the test environment, look for the line 'freeze> python -m pip freeze --all'
319- # in the output of the test step below.
320- run : uv pip list
321318 - name : Run sqlalchemy tests
322319 run : |
323320 cd sqlalchemy
324- tox -e github-nocext \
321+ uvx --with setuptools tox -e github-nocext \
325322 --force-dep "typing-extensions @ file://$(pwd)/../typing-extensions-latest" \
326323 -- -q --nomemory --notimingintensive
327324
0 commit comments