Skip to content

Commit 196d536

Browse files
committed
fix: another try to make test work on Windows
1 parent 9a91ab6 commit 196d536

File tree

1 file changed

+28
-8
lines changed

1 file changed

+28
-8
lines changed

.github/workflows/_test.yml

Lines changed: 28 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -41,19 +41,39 @@ jobs:
4141
- name: Setup venv
4242
run: |
4343
python -m venv .venv
44+
4445
- name: Install Python toolchains
46+
if: runner.os != 'Windows'
47+
run: |
48+
.venv/bin/python -m pip install maturin mypy pytest pytest-asyncio
49+
- name: Install Python toolchains (Windows)
50+
if: runner.os == 'Windows'
4551
run: |
46-
. .venv/bin/activate
47-
pip install maturin mypy pytest pytest-asyncio
52+
.venv\Scripts\python -m pip install maturin mypy pytest pytest-asyncio
53+
4854
- name: Python build
55+
if: runner.os != 'Windows'
56+
run: |
57+
.venv/bin/python -m maturin develop -E all
58+
- name: Python build (Windows)
59+
if: runner.os == 'Windows'
4960
run: |
50-
. .venv/bin/activate
51-
maturin develop -E all
61+
.venv\Scripts\python -m maturin develop -E all
62+
5263
- name: Python type check (mypy)
64+
if: runner.os != 'Windows'
65+
run: |
66+
.venv/bin/python -m mypy python
67+
- name: Python type check (mypy) (Windows)
68+
if: runner.os == 'Windows'
5369
run: |
54-
. .venv/bin/activate
55-
mypy python
70+
.venv\Scripts\python -m mypy python
71+
5672
- name: Python tests
73+
if: runner.os != 'Windows'
74+
run: |
75+
.venv/bin/python -m pytest python/cocoindex/tests
76+
- name: Python tests (Windows)
77+
if: runner.os == 'Windows'
5778
run: |
58-
. .venv/bin/activate
59-
pytest python/cocoindex/tests
79+
.venv\Scripts\python -m pytest python/cocoindex/tests

0 commit comments

Comments
 (0)