Skip to content

Commit 3236c85

Browse files
Fix: Use consistent shell commands and source statements across platforms
Co-Authored-By: [email protected] <[email protected]>
1 parent 9377023 commit 3236c85

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,75 +29,75 @@ jobs:
2929
python -m pip install uv
3030
- name: Install uv (Windows)
3131
if: runner.os == 'Windows'
32-
shell: pwsh
32+
shell: 'C:\Program Files\Git\bin\bash.exe -e'
3333
run: |
3434
python -m pip install uv
3535
- name: selfie-lib - install dependencies
3636
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
3737
run: |
3838
python -m uv venv
39-
source .venv/bin/activate || . .venv/Scripts/activate
39+
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
4343
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
4444
run: |
45-
source .venv/bin/activate || . .venv/Scripts/activate
45+
source .venv/bin/activate || source .venv/Scripts/activate
4646
python -m pytest -vv
4747
working-directory: python/selfie-lib
4848
- name: selfie-lib - pyright
4949
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
5050
run: |
51-
source .venv/bin/activate || . .venv/Scripts/activate
51+
source .venv/bin/activate || source .venv/Scripts/activate
5252
python -m pyright
5353
working-directory: python/selfie-lib
5454
- name: selfie-lib - ruff
5555
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
5656
run: |
57-
source .venv/bin/activate || . .venv/Scripts/activate
57+
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
6161
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
6262
run: |
6363
python -m uv venv
64-
source .venv/bin/activate || . .venv/Scripts/activate
64+
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
6868
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
6969
run: |
70-
source .venv/bin/activate || . .venv/Scripts/activate
70+
source .venv/bin/activate || source .venv/Scripts/activate
7171
python -m pyright
7272
working-directory: python/pytest-selfie
7373
- name: pytest-selfie - ruff
7474
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
7575
run: |
76-
source .venv/bin/activate || . .venv/Scripts/activate
76+
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
8080
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
8181
run: |
8282
python -m uv venv
83-
source .venv/bin/activate || . .venv/Scripts/activate
83+
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
8787
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
8888
run: |
89-
source .venv/bin/activate || . .venv/Scripts/activate
89+
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
9393
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
9494
run: |
95-
source .venv/bin/activate || . .venv/Scripts/activate
95+
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
9999
shell: ${{ runner.os == 'Windows' && 'C:\\Program Files\\Git\\bin\\bash.exe -e' || 'bash' }}
100100
run: |
101-
source .venv/bin/activate || . .venv/Scripts/activate
101+
source .venv/bin/activate || source .venv/Scripts/activate
102102
python -m ruff format --check && python -m ruff check
103103
working-directory: python/example-pytest-selfie

0 commit comments

Comments
 (0)