Skip to content

Commit 900e029

Browse files
committed
debug: switch shell in Windows to cmd
1 parent b2a6ba0 commit 900e029

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

.github/workflows/_test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,13 @@ jobs:
5151
- name: Python build
5252
run: |
5353
${{ matrix.platform.python_exec }} -m maturin develop -E all
54-
- name: Python tests
54+
- name: Python tests (non-Windows)
55+
if: ${{ !startsWith(matrix.platform.runner, 'windows') }}
56+
run: |
57+
${{ matrix.platform.python_exec }} -m pytest --capture=no python/cocoindex/tests
58+
- name: Python tests (Windows)
59+
if: ${{ startsWith(matrix.platform.runner, 'windows') }}
60+
# shell: cmd
5561
run: |
5662
${{ matrix.platform.python_exec }} -m pytest --capture=no python/cocoindex/tests
5763
- name: Python type check (mypy)

python/cocoindex/tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ def _cocoindex_windows_env_fixture(
3636
print("Exit with success.")
3737
sys.stdout.flush()
3838

39-
os._exit(0) # immediate success exit (skips atexit/teardown)
39+
sys.exit(0)
4040

4141
finally:
4242
try:

0 commit comments

Comments
 (0)