Skip to content

Commit afdafda

Browse files
committed
Try using powershell on Windows tests
1 parent 76f13b4 commit afdafda

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

.github/workflows/tests.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,7 @@ jobs:
1818
runs-on: ${{ matrix.os }}
1919
defaults:
2020
run:
21-
# Use a conditional expression to set the default shell
22-
# 'cmd' on Windows, 'bash' on other platforms (Linux, macOS)
23-
shell: ${{ matrix.os == 'windows-latest' && 'cmd' || 'bash' }}
21+
shell: bash
2422
steps:
2523
- name: Check out
2624
uses: actions/checkout@v6.0.2
@@ -39,9 +37,8 @@ jobs:
3937

4038
- name: Run tests
4139
if: runner.os == 'Windows'
42-
run:
43-
winpty uv run python -Xutf8 -m pytest --cov --cov-config=pyproject.toml --cov-report=xml
44-
tests
40+
shell: powershell
41+
run: uv run python -Xutf8 -m pytest --cov --cov-config=pyproject.toml --cov-report=xml tests
4542

4643
- name: Run tests
4744
if: runner.os != 'Windows'

0 commit comments

Comments
 (0)