Skip to content

Commit

Permalink
try locate h5diff in Windows env (8)
Browse files Browse the repository at this point in the history
  • Loading branch information
francoislaurent committed Mar 30, 2021
1 parent 393a811 commit 7155bb8
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,17 +37,14 @@ jobs:
- name: Install HDF5 (Windows)
if: ${{ runner.os == 'Windows' }}
shell: pwsh
env:
HDF5_BINDIR: C:\Program Files\HDF_Group\HDF5\1.10.7\bin
run: |
Try {h5diff.exe --version} Catch {
Invoke-WebRequest -Uri "https://support.hdfgroup.org/ftp/HDF5/releases/hdf5-1.10/hdf5-1.10.7/bin/windows/hdf5-1.10.7-Std-win10_64-vs16.zip" -OutFile "${{ github.workspace }}\hdf.zip"
unzip "${{ github.workspace }}\hdf.zip"
rm "${{ github.workspace }}\hdf.zip"
Start-Process -FilePath msiexec.exe -ArgumentList /i, "${{ github.workspace }}\hdf\HDF5-1.10.7-win64.msi", /qn, /log, "${{ github.workspace }}\msi.log" -Wait
Try { cat "${{ github.workspace }}\msi.log" } Catch { "log file not found" }
setx path "%PATH%;%HDF5_BINDIR%"
$env:path
echo "C:\Program Files\HDF_Group\HDF5\1.10.7\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
}
- name: Install HDF5 (macOS)
if: ${{ runner.os == 'macOS' }}
Expand All @@ -60,13 +57,7 @@ jobs:
python -m pip install .[roi]
- name: Test with pytest (Windows)
if: ${{ runner.os == 'Windows' }}
shell: pwsh
env:
HDF5_BINDIR: C:\Program Files\HDF_Group\HDF5\1.10.7\bin
run: >-
$env:path;
setx path "%PATH%;%HDF5_BINDIR%";
$env:path;
pytest
tests/test_core.py
tests/test_analyzer.py::TestSptDataAccess
Expand Down

0 comments on commit 7155bb8

Please sign in to comment.