|
42 | 42 | uv --version |
43 | 43 | uv pip list |
44 | 44 | # Verify core dependency is installed |
45 | | - python -c "import requests; print('[OK] Core dependency installed')" |
| 45 | + uv run python -c "import requests; print('[OK] Core dependency installed')" |
46 | 46 | # Verify dev group is NOT installed (default is now empty) |
47 | | - if python -c "import pytest" 2>/dev/null; then |
| 47 | + if uv run python -c "import pytest" 2>/dev/null; then |
48 | 48 | echo "[ERROR] pytest should not be installed" |
49 | 49 | exit 1 |
50 | 50 | else |
@@ -86,10 +86,10 @@ jobs: |
86 | 86 | run: | |
87 | 87 | uv pip list |
88 | 88 | # Verify test and docs groups are installed |
89 | | - python -c "import pytest_cov; import pytest_mock; print('[OK] Test dependencies installed')" |
90 | | - python -c "import mkdocs; print('[OK] Docs dependencies installed')" |
| 89 | + uv run python -c "import pytest_cov; import pytest_mock; print('[OK] Test dependencies installed')" |
| 90 | + uv run python -c "import mkdocs; print('[OK] Docs dependencies installed')" |
91 | 91 | # Verify dev group is NOT installed |
92 | | - if python -c "import black" 2>/dev/null; then |
| 92 | + if uv run python -c "import black" 2>/dev/null; then |
93 | 93 | echo "[ERROR] black should not be installed" |
94 | 94 | exit 1 |
95 | 95 | else |
@@ -129,9 +129,9 @@ jobs: |
129 | 129 | run: | |
130 | 130 | uv pip list |
131 | 131 | # Verify core dependency is installed |
132 | | - python -c "import requests; print('[OK] Core dependency installed')" |
| 132 | + uv run python -c "import requests; print('[OK] Core dependency installed')" |
133 | 133 | # Verify dev group is NOT installed |
134 | | - if python -c "import pytest" 2>/dev/null; then |
| 134 | + if uv run python -c "import pytest" 2>/dev/null; then |
135 | 135 | echo "[ERROR] pytest should not be installed" |
136 | 136 | exit 1 |
137 | 137 | else |
@@ -201,7 +201,7 @@ jobs: |
201 | 201 | shell: bash |
202 | 202 | run: | |
203 | 203 | uv pip list |
204 | | - python -c "import requests; print('[OK] Dependencies installed without lock verification')" |
| 204 | + uv run python -c "import requests; print('[OK] Dependencies installed without lock verification')" |
205 | 205 |
|
206 | 206 | test-uv-lock-verification-fail: |
207 | 207 | name: Test uv action - Lock verification failure |
@@ -291,13 +291,13 @@ jobs: |
291 | 291 | shell: bash |
292 | 292 | run: | |
293 | 293 | python --version |
294 | | - python -c "import sys; assert sys.version_info[:2] == tuple(map(int, '${{ matrix.python-version }}'.split('.')[:2]))" |
| 294 | + uv run python -c "import sys; assert sys.version_info[:2] == tuple(map(int, '${{ matrix.python-version }}'.split('.')[:2]))" |
295 | 295 | uv pip list |
296 | 296 |
|
297 | 297 | - name: Test uv functionality |
298 | 298 | shell: bash |
299 | 299 | run: | |
300 | | - python -c "import requests; import pytest; print(f'[OK] Python ${{ matrix.python-version }} working on ${{ matrix.os }}')" |
| 300 | + uv run python -c "import requests; import pytest; print(f'[OK] Python ${{ matrix.python-version }} working on ${{ matrix.os }}')" |
301 | 301 |
|
302 | 302 | test-uv-cache: |
303 | 303 | name: Test uv action - Cache functionality |
@@ -364,7 +364,7 @@ jobs: |
364 | 364 | - name: Verify all groups installed |
365 | 365 | shell: bash |
366 | 366 | run: | |
367 | | - python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All comma-separated groups installed')" |
| 367 | + uv run python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All comma-separated groups installed')" |
368 | 368 |
|
369 | 369 | test-uv-mixed-separators: |
370 | 370 | name: Test uv action - Mixed separators (space and comma) |
@@ -399,7 +399,7 @@ jobs: |
399 | 399 | - name: Verify all groups installed |
400 | 400 | shell: bash |
401 | 401 | run: | |
402 | | - python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All mixed-separator groups installed')" |
| 402 | + uv run python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All mixed-separator groups installed')" |
403 | 403 |
|
404 | 404 | test-uv-space-separated-groups: |
405 | 405 | name: Test uv action - Space-separated groups |
@@ -434,7 +434,7 @@ jobs: |
434 | 434 | - name: Verify all groups installed |
435 | 435 | shell: bash |
436 | 436 | run: | |
437 | | - python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All space-separated groups installed')" |
| 437 | + uv run python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All space-separated groups installed')" |
438 | 438 |
|
439 | 439 | test-uv-no-dependency-groups-section: |
440 | 440 | name: Test uv action - No dependency-groups section |
@@ -462,7 +462,7 @@ jobs: |
462 | 462 | - name: Verify action succeeded with core dependencies only |
463 | 463 | shell: bash |
464 | 464 | run: | |
465 | | - python -c "import requests; print('[OK] Core dependencies installed without dependency-groups section')" |
| 465 | + uv run python -c "import requests; print('[OK] Core dependencies installed without dependency-groups section')" |
466 | 466 | uv pip list |
467 | 467 | echo "[OK] Action succeeded without dependency-groups section" |
468 | 468 |
|
@@ -497,4 +497,4 @@ jobs: |
497 | 497 | - name: Verify dev group installed |
498 | 498 | shell: bash |
499 | 499 | run: | |
500 | | - python -c "import pytest; import black; print('[OK] Dev group explicitly installed')" |
| 500 | + uv run python -c "import pytest; import black; print('[OK] Dev group explicitly installed')" |
0 commit comments