Skip to content

Commit ce023c6

Browse files
committed
OCP tests on Win
1 parent 86a7c93 commit ce023c6

1 file changed

Lines changed: 18 additions & 1 deletion

File tree

.github/workflows/ci.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,6 +185,8 @@ jobs:
185185
os: ubuntu-latest
186186
- name: macOS
187187
os: macos-latest
188+
- name: Windows
189+
os: windows-latest
188190
env:
189191
DO_DOCKER: 0
190192
steps:
@@ -199,7 +201,22 @@ jobs:
199201
with:
200202
python-version: "3.12"
201203
cache: "pip"
202-
cache-dependency-path: open-codegen/setup.py
204+
cache-dependency-path: open-codegen/pyproject.toml
203205

204206
- name: Run OCP Python tests
207+
if: runner.os != 'Windows'
205208
run: bash ./ci/script.sh ocp-tests
209+
210+
- name: Install Python package
211+
if: runner.os == 'Windows'
212+
working-directory: open-codegen
213+
run: |
214+
python -m pip install --upgrade pip
215+
python -m pip install .
216+
217+
- name: Run OCP Python tests
218+
if: runner.os == 'Windows'
219+
working-directory: open-codegen
220+
env:
221+
PYTHONPATH: .
222+
run: python -W ignore test/test_ocp.py -v

0 commit comments

Comments
 (0)