2121 HSDS_PASSWORD : test
2222 HSDS_PATH : /home/test_user1/
2323 HDF5_API_TEST_PATH_PREFIX : /home/test_user1/
24- HSDS_ENDPOINT : http+unix://%2Ftmp%2Fhs%2Fsn_1.sock
2524 HDF5_VOL_CONNECTOR : REST
2625 ROOT_DIR : ${{github.workspace}}/hsdsdata
2726 BUCKET_NAME : hsdstest
3433 os : [ubuntu-latest]
3534 python-version : ["3.10"]
3635 hdf5-branch : ["hdf5_1_14", "develop"]
37-
36+ env :
37+ HSDS_ENDPOINT : http+unix://%2Ftmp%2Fhs%2Fsn_1.sock
3838 runs-on : ${{matrix.os}}
3939 steps :
4040 - uses : actions/checkout@v4
@@ -133,7 +133,7 @@ jobs:
133133 sleep 10
134134 working-directory : ${{github.workspace}}/hsds
135135
136- - name : Test HSDS
136+ - name : Test HSDS + Setup Folders
137137 run : |
138138 python tests/integ/setup_test.py
139139 working-directory : ${{github.workspace}}/hsds
@@ -150,7 +150,8 @@ jobs:
150150 os : [ubuntu-latest]
151151 python-version : ["3.10"]
152152 hdf5-branch : ["hdf5_1_14", "develop"]
153-
153+ env :
154+ HSDS_ENDPOINT : http+unix://%2Ftmp%2Fhs%2Fsn_1.sock
154155 runs-on : ${{matrix.os}}
155156 steps :
156157 - uses : actions/checkout@v4
@@ -242,11 +243,9 @@ jobs:
242243 - name : Start HSDS
243244 run : |
244245 cd ${{github.workspace}}/hsds
245- mkdir ${{github.workspace}}/hsdsdata &&
246- mkdir ${{github.workspace}}/hsdsdata/hsdstest &&
247- cp admin/config/groups.default admin/config/groups.txt &&
248- cp admin/config/passwd.default admin/config/passwd.txt &&
249- cp admin/config/groups.default admin/config/groups.txt &&
246+ mkdir ${{github.workspace}}/hsdsdata
247+ mkdir ${{github.workspace}}/hsdsdata/hsdstest
248+ cp admin/config/groups.default admin/config/groups.txt
250249 cp admin/config/passwd.default admin/config/passwd.txt
251250 ROOT_DIR=${{github.workspace}}/hsdadata ./runall.sh --no-docker 1 &
252251 sleep 10
@@ -280,7 +279,8 @@ jobs:
280279 os : [windows-latest]
281280 python-version : ["3.10"]
282281 hdf5-branch : ["hdf5_1_14", "develop"]
283-
282+ env :
283+ HSDS_ENDPOINT : http://127.0.0.1:5101
284284 runs-on : ${{matrix.os}}
285285 steps :
286286 - name : Get HDF5
@@ -295,6 +295,47 @@ jobs:
295295 with :
296296 path : ${{github.workspace}}/vol-rest
297297
298+ - name : Get HSDS
299+ uses : actions/checkout@v3
300+ with :
301+ repository : HDFGroup/hsds
302+ path : ${{github.workspace}}/hsds
303+
304+ - name : Set up Python ${{ matrix.python-version }}
305+ uses : actions/setup-python@v5
306+ with :
307+ python-version : ${{ matrix.python-version }}
308+
309+ - name : Install HSDS dependencies
310+ working-directory : ${{github.workspace}}/hsds
311+ shell : bash
312+ run : |
313+ python -m pip install --upgrade pip
314+ python -m pip install pytest
315+ if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
316+
317+ - name : Install HSDS package
318+ working-directory : ${{github.workspace}}/hsds
319+ shell : bash
320+ run : |
321+ pip install -e .
322+
323+ - name : Start HSDS
324+ shell : bash
325+ working-directory : ${{github.workspace}}/hsds
326+ run : |
327+ mkdir data
328+ mkdir data/hsdstest
329+ cp admin/config/groups.default admin/config/groups.txt
330+ cp admin/config/passwd.default admin/config/passwd.txt
331+ hsds --root_dir data --host localhost --port 5101 --password_file admin/config/passwd.txt --logfile hs.log --loglevel DEBUG --config_dir=admin/config --count=4 &
332+ sleep 10
333+
334+ - name : Test HSDS + Setup Folders
335+ run : |
336+ python tests/integ/setup_test.py
337+ working-directory : ${{github.workspace}}/hsds
338+
298339 - name : Get curl from source
299340 uses : actions/checkout@v4
300341 with :
@@ -357,16 +398,18 @@ jobs:
357398 -DCURL_ROOT=${{github.workspace}}/curl/install/ -DCMAKE_C_FLAGS="/DCURL_STATICLIB" `
358399 -DCURL_USE_STATIC_LIBRARIES=ON `
359400 -DYAJL_ROOT=${{github.workspace}}/yajl/install/ `
401+ -DBUILD_STATIC_LIBS=OFF -DBUILD_SHARED_LIBS=ON `
360402 -DCMAKE_BUILD_TYPE=Release ..
361403 cmake --build . -j --config Release
362404 cmake --install . --config Release
363405
364- - name : Set HDF5 Plugin path
365- run : |
366- echo "HDF5_PLUGIN_PATH=${{github.workspace}}/vol-rest/build/bin/" >> $GITHUB_ENV
367- echo "HDF5_VOL_CONNECTOR=REST" >> $GITHUB_ENV
368-
369406 - name : Test REST VOL
370- working-directory : ${{github.workspace}}/vol-rest/install/bin/
407+ working-directory : ${{github.workspace}}\vol-rest\build
408+ env :
409+ HDF5_PLUGIN_PATH : ${{github.workspace}}\vol-rest\install\bin
410+ # Manually append lib to PATH here, since env can change between steps on the runner
371411 run : |
372- test_rest_vol-shared.exe
412+ $env:PATH="$env:PATH;${{github.workspace}}\vol-rest\install\bin;${{github.workspace}}\hdf5install\bin;${{github.workspace}}\yajl\install\lib"
413+ ctest . -C Release -VV --output-on-failure
414+
415+
0 commit comments