@@ -41,10 +41,16 @@ jobs:
4141 python --version
4242 uv --version
4343 uv pip list
44+ # Activate venv (cross-platform)
45+ if [ -f .venv/bin/activate ]; then
46+ source .venv/bin/activate
47+ else
48+ source .venv/Scripts/activate
49+ fi
4450 # Verify core dependency is installed
45- uv run python -c "import requests; print('[OK] Core dependency installed')"
51+ python -c "import requests; print('[OK] Core dependency installed')"
4652 # Verify dev group is NOT installed (default is now empty)
47- if uv run python -c "import pytest" 2>/dev/null; then
53+ if python -c "import pytest" 2>/dev/null; then
4854 echo "[ERROR] pytest should not be installed"
4955 exit 1
5056 else
@@ -85,11 +91,17 @@ jobs:
8591 shell : bash
8692 run : |
8793 uv pip list
94+ # Activate venv (cross-platform)
95+ if [ -f .venv/bin/activate ]; then
96+ source .venv/bin/activate
97+ else
98+ source .venv/Scripts/activate
99+ fi
88100 # Verify test and docs groups are 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')"
101+ python -c "import pytest_cov; import pytest_mock; print('[OK] Test dependencies installed')"
102+ python -c "import mkdocs; print('[OK] Docs dependencies installed')"
91103 # Verify dev group is NOT installed
92- if uv run python -c "import black" 2>/dev/null; then
104+ if python -c "import black" 2>/dev/null; then
93105 echo "[ERROR] black should not be installed"
94106 exit 1
95107 else
@@ -128,10 +140,16 @@ jobs:
128140 shell : bash
129141 run : |
130142 uv pip list
143+ # Activate venv (cross-platform)
144+ if [ -f .venv/bin/activate ]; then
145+ source .venv/bin/activate
146+ else
147+ source .venv/Scripts/activate
148+ fi
131149 # Verify core dependency is installed
132- uv run python -c "import requests; print('[OK] Core dependency installed')"
150+ python -c "import requests; print('[OK] Core dependency installed')"
133151 # Verify dev group is NOT installed
134- if uv run python -c "import pytest" 2>/dev/null; then
152+ if python -c "import pytest" 2>/dev/null; then
135153 echo "[ERROR] pytest should not be installed"
136154 exit 1
137155 else
@@ -201,7 +219,9 @@ jobs:
201219 shell : bash
202220 run : |
203221 uv pip list
204- uv run python -c "import requests; print('[OK] Dependencies installed without lock verification')"
222+ # Activate venv (cross-platform)
223+ if [ -f .venv/bin/activate ]; then source .venv/bin/activate; else source .venv/Scripts/activate; fi
224+ python -c "import requests; print('[OK] Dependencies installed without lock verification')"
205225
206226 test-uv-lock-verification-fail :
207227 name : Test uv action - Lock verification failure
@@ -291,13 +311,13 @@ jobs:
291311 shell : bash
292312 run : |
293313 python --version
294- uv run python -c "import sys; assert sys.version_info[:2] == tuple(map(int, '${{ matrix.python-version }}'.split('.')[:2]))"
314+ python -c "import sys; assert sys.version_info[:2] == tuple(map(int, '${{ matrix.python-version }}'.split('.')[:2]))"
295315 uv pip list
296316
297317 - name : Test uv functionality
298318 shell : bash
299319 run : |
300- uv run python -c "import requests; import pytest; print(f'[OK] Python ${{ matrix.python-version }} working on ${{ matrix.os }}')"
320+ python -c "import requests; import pytest; print(f'[OK] Python ${{ matrix.python-version }} working on ${{ matrix.os }}')"
301321
302322 test-uv-cache :
303323 name : Test uv action - Cache functionality
@@ -364,7 +384,7 @@ jobs:
364384 - name : Verify all groups installed
365385 shell : bash
366386 run : |
367- uv run python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All comma-separated groups installed')"
387+ python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All comma-separated groups installed')"
368388
369389 test-uv-mixed-separators :
370390 name : Test uv action - Mixed separators (space and comma)
@@ -399,7 +419,7 @@ jobs:
399419 - name : Verify all groups installed
400420 shell : bash
401421 run : |
402- uv run python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All mixed-separator groups installed')"
422+ python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All mixed-separator groups installed')"
403423
404424 test-uv-space-separated-groups :
405425 name : Test uv action - Space-separated groups
@@ -434,7 +454,7 @@ jobs:
434454 - name : Verify all groups installed
435455 shell : bash
436456 run : |
437- uv run python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All space-separated groups installed')"
457+ python -c "import pytest; import pytest_cov; import mkdocs; print('[OK] All space-separated groups installed')"
438458
439459 test-uv-no-dependency-groups-section :
440460 name : Test uv action - No dependency-groups section
@@ -462,7 +482,7 @@ jobs:
462482 - name : Verify action succeeded with core dependencies only
463483 shell : bash
464484 run : |
465- uv run python -c "import requests; print('[OK] Core dependencies installed without dependency-groups section')"
485+ python -c "import requests; print('[OK] Core dependencies installed without dependency-groups section')"
466486 uv pip list
467487 echo "[OK] Action succeeded without dependency-groups section"
468488
@@ -497,4 +517,4 @@ jobs:
497517 - name : Verify dev group installed
498518 shell : bash
499519 run : |
500- uv run python -c "import pytest; import black; print('[OK] Dev group explicitly installed')"
520+ python -c "import pytest; import black; print('[OK] Dev group explicitly installed')"
0 commit comments