Skip to content

Commit 5c8c5f8

Browse files
committed
Create venv in package directory when necessary
1 parent 6aa23f7 commit 5c8c5f8

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

.github/workflows/third_party.yml

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,16 +94,16 @@ jobs:
9494
- name: Install typing_inspect test dependencies
9595
run: |
9696
set -x
97-
uv venv .venv
9897
cd typing_inspect
98+
uv venv .venv
9999
uv pip install -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
100100
- name: Install typing_extensions latest
101-
run: uv pip install "typing-extensions @ ./typing-extensions-latest"
101+
run: cd typing_inspect; uv pip install "typing-extensions @ ../typing-extensions-latest"
102102
- name: List all installed dependencies
103-
run: uv pip freeze
103+
run: cd typing_inspect; uv pip freeze
104104
- name: Run typing_inspect tests
105105
run: |
106-
uv run --directory typing_inspect pytest
106+
cd typing_inspect; uv run pytest
107107
108108
pycroscope:
109109
name: pycroscope tests
@@ -129,16 +129,16 @@ jobs:
129129
- name: Install pycroscope test requirements
130130
run: |
131131
set -x
132-
uv venv .venv
133132
cd pycroscope
133+
uv venv .venv
134134
uv pip install 'pycroscope[tests] @ .' --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
135135
- name: Install typing_extensions latest
136-
run: uv pip install "typing-extensions @ ./typing-extensions-latest"
136+
run: cd pycroscope; uv pip install "typing-extensions @ ../typing-extensions-latest"
137137
- name: List all installed dependencies
138-
run: uv pip freeze
138+
run: cd pycroscope; uv pip freeze
139139
- name: Run pycroscope tests
140140
run: |
141-
uv run --directory pycroscope pytest pycroscope/
141+
cd pycroscope; uv run pytest pycroscope/
142142
143143
typeguard:
144144
name: typeguard tests
@@ -164,17 +164,17 @@ jobs:
164164
- name: Install typeguard test requirements
165165
run: |
166166
set -x
167-
uv venv .venv
168167
cd typeguard
168+
uv venv .venv
169169
uv pip install "typeguard @ ." --group test --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
170170
- name: Install typing_extensions latest
171-
run: uv pip install "typing-extensions @ ./typing-extensions-latest"
171+
run: cd typeguard; uv pip install "typing-extensions @ ../typing-extensions-latest"
172172
- name: List all installed dependencies
173-
run: uv pip freeze
173+
run: cd typeguard; uv pip freeze
174174
- name: Run typeguard tests
175175
run: |
176176
export PYTHON_COLORS=0 # A test fails if tracebacks are colorized
177-
uv run --directory typeguard pytest
177+
cd typeguard; uv run pytest
178178
179179
typed-argument-parser:
180180
name: typed-argument-parser tests
@@ -206,17 +206,17 @@ jobs:
206206
- name: Install typed-argument-parser test requirements
207207
run: |
208208
set -x
209-
uv venv .venv
210209
cd typed-argument-parser
210+
uv venv .venv
211211
uv pip install "typed-argument-parser @ ." --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
212212
uv pip install pytest --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
213213
- name: Install typing_extensions latest
214-
run: uv pip install "typing-extensions @ ./typing-extensions-latest"
214+
run: cd typed-argument-parser; uv pip install "typing-extensions @ ../typing-extensions-latest"
215215
- name: List all installed dependencies
216-
run: uv pip freeze
216+
run: cd typed-argument-parser; uv pip freeze
217217
- name: Run typed-argument-parser tests
218218
run: |
219-
uv run --directory typed-argument-parser pytest
219+
cd typed-argument-parser; uv run pytest
220220
221221
mypy:
222222
name: stubtest & mypyc tests
@@ -242,17 +242,17 @@ jobs:
242242
- name: Install mypy test requirements
243243
run: |
244244
set -x
245-
uv venv .venv
246245
cd mypy
246+
uv venv .venv
247247
uv pip install -r test-requirements.txt --exclude-newer "$(git show -s --date=format:'%Y-%m-%dT%H:%M:%SZ' --format=%cd HEAD)"
248248
uv pip install -e .
249249
- name: Install typing_extensions latest
250-
run: uv pip install "typing-extensions @ ./typing-extensions-latest"
250+
run: cd mypy; uv pip install "typing-extensions @ ../typing-extensions-latest"
251251
- name: List all installed dependencies
252-
run: uv pip freeze
252+
run: cd mypy; uv pip freeze
253253
- name: Run stubtest & mypyc tests
254254
run: |
255-
uv run --directory mypy pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py
255+
cd mypy; uv run pytest -n 2 ./mypy/test/teststubtest.py ./mypyc/test/test_run.py ./mypyc/test/test_external.py
256256
257257
cattrs:
258258
name: cattrs tests

0 commit comments

Comments
 (0)