Skip to content

Commit 97fc7d9

Browse files
authored
[Windows] Run all tests in env.NEW_WORKSPACE (#3346)
Signed-off-by: Anatoly Myachev <[email protected]>
1 parent e28887d commit 97fc7d9

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

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

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -99,12 +99,14 @@ jobs:
9999
run: |
100100
.venv\Scripts\activate.ps1
101101
Invoke-BatchFile "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
102+
cd ${{ env.NEW_WORKSPACE }}
102103
${{ env.TRITON_TEST_CMD }} --core
103104
104105
- name: Run interpreter tests
105106
run: |
106107
.venv\Scripts\activate.ps1
107108
Invoke-BatchFile "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
109+
cd ${{ env.NEW_WORKSPACE }}
108110
${{ env.TRITON_TEST_CMD }} --interpreter
109111
110112
- name: Run tutorials
@@ -113,6 +115,7 @@ jobs:
113115
Invoke-BatchFile "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
114116
# Disable interactive plot window
115117
$env:MPLBACKEND = "Agg"
118+
cd ${{ env.NEW_WORKSPACE }}
116119
${{ env.TRITON_TEST_CMD }} --tutorial
117120
118121
- name: Run instrumentation tests
@@ -121,14 +124,13 @@ jobs:
121124
Invoke-BatchFile "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
122125
cd ${{ env.NEW_WORKSPACE }}
123126
${{ env.TRITON_TEST_CMD }} --instrumentation
124-
# so that it is correctly taken into account while calculating pass rate
125-
Copy-Item -Path ${{ env.NEW_WORKSPACE }}\reports\instrumentation.xml -Destination ${{ github.workspace }}\reports
126127
127128
- name: Pass rate
128129
run: |
129130
.venv\Scripts\activate.ps1
130131
# oneAPI is required for sycl-ls, which is used by scripts/capture-hw-details.sh
131132
Invoke-BatchFile "C:\Program Files (x86)\Intel\oneAPI\setvars.bat"
133+
cd ${{ env.NEW_WORKSPACE }}
132134
pip install defusedxml
133135
bash -c "\
134136
source ./scripts/capture-hw-details.sh; \

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,14 @@ jobs:
116116
run: |
117117
.venv\Scripts\activate.ps1
118118
Invoke-BatchFile "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
119+
cd ${{ env.NEW_WORKSPACE }}
119120
${{ env.TRITON_TEST_CMD }} --core
120121
121122
- name: Run interpreter tests
122123
run: |
123124
.venv\Scripts\activate.ps1
124125
Invoke-BatchFile "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
126+
cd ${{ env.NEW_WORKSPACE }}
125127
${{ env.TRITON_TEST_CMD }} --interpreter
126128
127129
- name: Run tutorials
@@ -130,6 +132,7 @@ jobs:
130132
Invoke-BatchFile "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvarsall.bat" x64
131133
# Disable interactive plot window
132134
$env:MPLBACKEND = "Agg"
135+
cd ${{ env.NEW_WORKSPACE }}
133136
${{ env.TRITON_TEST_CMD }} --tutorial
134137
135138
- name: Run instrumentation tests
@@ -143,6 +146,7 @@ jobs:
143146
run: |
144147
.venv\Scripts\activate.ps1
145148
pip install defusedxml
149+
cd ${{ env.NEW_WORKSPACE }}
146150
bash -c "\
147151
source ./scripts/capture-hw-details.sh; \
148152
python scripts/pass_rate.py --reports reports ${{ env.SKIPLIST }}; \

0 commit comments

Comments
 (0)