Skip to content

Commit d35cf98

Browse files
Fix: Use python -m uv for all uv commands
Co-Authored-By: [email protected] <[email protected]>
1 parent f3de234 commit d35cf98

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

.github/workflows/python-ci.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,15 +33,12 @@ jobs:
3333
shell: pwsh
3434
run: |
3535
python -m pip install uv
36-
$pythonPath = (Get-Command python).Path
37-
$scriptsPath = Join-Path (Split-Path $pythonPath) "Scripts"
38-
echo $scriptsPath | Out-File -FilePath $env:GITHUB_PATH -Append
3936
- name: selfie-lib - install dependencies
4037
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
4138
run: |
42-
uv venv
39+
python -m uv venv
4340
source .venv/bin/activate || . .venv/Scripts/activate
44-
uv pip install -r requirements.txt -r dev-requirements.txt
41+
python -m uv pip install -r requirements.txt -r dev-requirements.txt
4542
working-directory: python/selfie-lib
4643
- name: selfie-lib - pytest
4744
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
@@ -64,9 +61,9 @@ jobs:
6461
- name: pytest-selfie - install dependencies
6562
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
6663
run: |
67-
uv venv
64+
python -m uv venv
6865
source .venv/bin/activate || . .venv/Scripts/activate
69-
uv pip install -r requirements.txt -r dev-requirements.txt
66+
python -m uv pip install -r requirements.txt -r dev-requirements.txt
7067
working-directory: python/pytest-selfie
7168
- name: pytest-selfie - pyright
7269
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
@@ -83,9 +80,9 @@ jobs:
8380
- name: example-pytest-selfie - install dependencies
8481
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
8582
run: |
86-
uv venv
83+
python -m uv venv
8784
source .venv/bin/activate || . .venv/Scripts/activate
88-
uv pip install -r requirements.txt -r dev-requirements.txt
85+
python -m uv pip install -r requirements.txt -r dev-requirements.txt
8986
working-directory: python/example-pytest-selfie
9087
- name: example-pytest-selfie - pytest
9188
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}

0 commit comments

Comments
 (0)