Skip to content

Commit 6aa23f7

Browse files
committed
Run uv run with --directory when necessary
1 parent 37e21a1 commit 6aa23f7

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/third_party.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,7 @@ jobs:
103103
run: uv pip freeze
104104
- name: Run typing_inspect tests
105105
run: |
106-
cd typing_inspect
107-
uv run pytest
106+
uv run --directory typing_inspect pytest
108107
109108
pycroscope:
110109
name: pycroscope tests
@@ -139,8 +138,7 @@ jobs:
139138
run: uv pip freeze
140139
- name: Run pycroscope tests
141140
run: |
142-
cd pycroscope
143-
pytest pycroscope/
141+
uv run --directory pycroscope pytest pycroscope/
144142
145143
typeguard:
146144
name: typeguard tests
@@ -175,9 +173,8 @@ jobs:
175173
run: uv pip freeze
176174
- name: Run typeguard tests
177175
run: |
178-
cd typeguard
179176
export PYTHON_COLORS=0 # A test fails if tracebacks are colorized
180-
uv run pytest
177+
uv run --directory typeguard pytest
181178
182179
typed-argument-parser:
183180
name: typed-argument-parser tests
@@ -219,8 +216,7 @@ jobs:
219216
run: uv pip freeze
220217
- name: Run typed-argument-parser tests
221218
run: |
222-
cd typed-argument-parser
223-
uv run pytest
219+
uv run --directory typed-argument-parser pytest
224220
225221
mypy:
226222
name: stubtest & mypyc tests
@@ -256,8 +252,7 @@ jobs:
256252
run: uv pip freeze
257253
- name: Run stubtest & mypyc tests
258254
run: |
259-
cd mypy
260-
uv run pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py
255+
uv run --directory mypy pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py
261256
262257
cattrs:
263258
name: cattrs tests

0 commit comments

Comments
 (0)