Skip to content

Commit e663811

Browse files
committed
Add code coverage support for Windows and linux platform
1 parent b1fe0a8 commit e663811

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/workflows/coverage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@ jobs:
138138
139139
- name: Set cuda package install root
140140
run: |
141-
echo "INSTALL_ROOT=$(.venv/bin/python -c 'import cuda; print(cuda.__path__[0])')/.." >> $GITHUB_ENV
141+
echo "INSTALL_ROOT=$(.venv/bin/python -c 'import cuda; import os; print(os.path.dirname(cuda.__path__[0]))')" >> $GITHUB_ENV
142142
echo "REPO_ROOT=$(pwd)" >> $GITHUB_ENV
143143
144144
- name: Run cuda.pathfinder tests
@@ -236,7 +236,7 @@ jobs:
236236
cuda-version: ${{ env.CUDA_VER }}
237237

238238
- name: Patch cuda_bindings for Cython coverage
239-
shell: pwsh
239+
shell: powershell
240240
run: |
241241
$setupPath = "cuda_bindings\setup.py"
242242
(Get-Content $setupPath -Raw) -replace 'build_dir="build/cython",', 'build_dir=".",' | Set-Content $setupPath -NoNewline
@@ -247,7 +247,7 @@ jobs:
247247
echo "Applied coverage patches to cuda_bindings"
248248
249249
- name: Patch cuda_core for Cython coverage
250-
shell: pwsh
250+
shell: powershell
251251
run: |
252252
$buildHooksPath = "cuda_core\build_hooks.py"
253253
(Get-Content $buildHooksPath -Raw) -replace 'build_dir="build/cython",', 'build_dir=".",' | Set-Content $buildHooksPath -NoNewline

0 commit comments

Comments
 (0)