Skip to content

Commit 2247beb

Browse files
authored
Run tutorials in Windows CI (#3289)
Fixes #3195.
1 parent a643398 commit 2247beb

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

.github/workflows/build-test-windows.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
permissions: read-all
1010

1111
env:
12+
PYTHONIOENCODING: utf-8
1213
NEW_WORKSPACE: C:\gh${{ github.run_id }}
1314
ZE_PATH: C:\level_zero
1415
PYTEST_MAX_PROCESSES: 8
@@ -94,6 +95,14 @@ jobs:
9495
Invoke-BatchFile "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
9596
${{ env.TRITON_TEST_CMD }} --interpreter
9697
98+
- name: Run tutorials
99+
run: |
100+
.venv\Scripts\activate.ps1
101+
Invoke-BatchFile "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
102+
# Disable interactive plot window
103+
$env:MPLBACKEND = "Agg"
104+
${{ env.TRITON_TEST_CMD }} --tutorial
105+
97106
- name: Pass rate
98107
run: |
99108
.venv\Scripts\activate.ps1

.github/workflows/pip-test-windows.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ on:
2121
permissions: read-all
2222

2323
env:
24+
PYTHONIOENCODING: utf-8
2425
NEW_WORKSPACE: C:\gh${{ github.run_id }}
2526
ZE_PATH: C:\level_zero
2627
PYTEST_MAX_PROCESSES: 8
@@ -111,6 +112,14 @@ jobs:
111112
Invoke-BatchFile "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
112113
${{ env.TRITON_TEST_CMD }} --interpreter
113114
115+
- name: Run tutorials
116+
run: |
117+
.venv\Scripts\activate.ps1
118+
Invoke-BatchFile "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
119+
# Disable interactive plot window
120+
$env:MPLBACKEND = "Agg"
121+
${{ env.TRITON_TEST_CMD }} --tutorial
122+
114123
- name: Pass rate
115124
run: |
116125
.venv\Scripts\activate.ps1

0 commit comments

Comments
 (0)