Skip to content

Commit 720ba18

Browse files
Fix: Use forward slashes in Windows shell paths
Co-Authored-By: [email protected] <[email protected]>
1 parent 3236c85 commit 720ba18

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

.github/workflows/python-ci.yml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -29,74 +29,74 @@ jobs:
2929
python -m pip install uv
3030
- name: Install uv (Windows)
3131
if: runner.os == 'Windows'
32-
shell: 'C:\Program Files\Git\bin\bash.exe -e'
32+
shell: 'C:/Program Files/Git/bin/bash.exe -e'
3333
run: |
3434
python -m pip install uv
3535
- name: selfie-lib - install dependencies
36-
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
36+
shell: ${{ runner.os == 'Windows' && 'C:/Program Files/Git/bin/bash.exe -e' || 'bash' }}
3737
run: |
3838
python -m uv venv
3939
source .venv/bin/activate || source .venv/Scripts/activate
4040
python -m uv pip install -r requirements.txt -r dev-requirements.txt
4141
working-directory: python/selfie-lib
4242
- name: selfie-lib - pytest
43-
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
43+
shell: ${{ runner.os == 'Windows' && 'C:/Program Files/Git/bin/bash.exe -e' || 'bash' }}
4444
run: |
4545
source .venv/bin/activate || source .venv/Scripts/activate
4646
python -m pytest -vv
4747
working-directory: python/selfie-lib
4848
- name: selfie-lib - pyright
49-
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
49+
shell: ${{ runner.os == 'Windows' && 'C:/Program Files/Git/bin/bash.exe -e' || 'bash' }}
5050
run: |
5151
source .venv/bin/activate || source .venv/Scripts/activate
5252
python -m pyright
5353
working-directory: python/selfie-lib
5454
- name: selfie-lib - ruff
55-
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
55+
shell: ${{ runner.os == 'Windows' && 'C:/Program Files/Git/bin/bash.exe -e' || 'bash' }}
5656
run: |
5757
source .venv/bin/activate || source .venv/Scripts/activate
5858
python -m ruff format --check && python -m ruff check
5959
working-directory: python/selfie-lib
6060
- name: pytest-selfie - install dependencies
61-
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
61+
shell: ${{ runner.os == 'Windows' && 'C:/Program Files/Git/bin/bash.exe -e' || 'bash' }}
6262
run: |
6363
python -m uv venv
6464
source .venv/bin/activate || source .venv/Scripts/activate
6565
python -m uv pip install -r requirements.txt -r dev-requirements.txt
6666
working-directory: python/pytest-selfie
6767
- name: pytest-selfie - pyright
68-
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
68+
shell: ${{ runner.os == 'Windows' && 'C:/Program Files/Git/bin/bash.exe -e' || 'bash' }}
6969
run: |
7070
source .venv/bin/activate || source .venv/Scripts/activate
7171
python -m pyright
7272
working-directory: python/pytest-selfie
7373
- name: pytest-selfie - ruff
74-
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
74+
shell: ${{ runner.os == 'Windows' && 'C:/Program Files/Git/bin/bash.exe -e' || 'bash' }}
7575
run: |
7676
source .venv/bin/activate || source .venv/Scripts/activate
7777
python -m ruff format --check && python -m ruff check
7878
working-directory: python/pytest-selfie
7979
- name: example-pytest-selfie - install dependencies
80-
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
80+
shell: ${{ runner.os == 'Windows' && 'C:/Program Files/Git/bin/bash.exe -e' || 'bash' }}
8181
run: |
8282
python -m uv venv
8383
source .venv/bin/activate || source .venv/Scripts/activate
8484
python -m uv pip install -r requirements.txt -r dev-requirements.txt
8585
working-directory: python/example-pytest-selfie
8686
- name: example-pytest-selfie - pytest
87-
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
87+
shell: ${{ runner.os == 'Windows' && 'C:/Program Files/Git/bin/bash.exe -e' || 'bash' }}
8888
run: |
8989
source .venv/bin/activate || source .venv/Scripts/activate
9090
python -m pytest -vv
9191
working-directory: python/example-pytest-selfie
9292
- name: example-pytest-selfie - pyright
93-
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
93+
shell: ${{ runner.os == 'Windows' && 'C:/Program Files/Git/bin/bash.exe -e' || 'bash' }}
9494
run: |
9595
source .venv/bin/activate || source .venv/Scripts/activate
9696
python -m pyright
9797
working-directory: python/example-pytest-selfie
9898
- name: example-pytest-selfie - ruff
99-
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
99+
shell: ${{ runner.os == 'Windows' && 'C:/Program Files/Git/bin/bash.exe -e' || 'bash' }}
100100
run: |
101101
source .venv/bin/activate || source .venv/Scripts/activate
102102
python -m ruff format --check && python -m ruff check

0 commit comments

Comments
 (0)