@@ -66,12 +66,11 @@ jobs:
6666 rai_v : [1.2.7] # versions of RedisAI
6767 py_v : ['3.9.x', '3.10.x', '3.11.x'] # versions of Python
6868 compiler : [nvhpc-23-11, intel-2024.0, gcc-11, gcc-12] # intel compiler, and versions of GNU compiler
69- link_type : [Static, Shared ]
69+ link_type : [shared, static ]
7070 env :
7171 COMPILER : ${{ matrix.compiler }} # used when the compiler is gcc/gfortran
7272 LINK_TYPE : ${{ matrix.link_type }}
7373
74-
7574 steps :
7675 # Maximize the space in this image
7776 - name : Maximize build space
@@ -171,34 +170,41 @@ jobs:
171170 if : contains(matrix.os, 'ubuntu')
172171 run : sudo apt-get -y install cmake
173172
173+ - name : Build and install SmartRedis library
174+ run : |
175+ make test-lib INSTALL_PREFIX=$PWD/install/$LINK_TYPE \
176+ BUILD_FORTRAN=ON BUILD_PYTHON=ON LINK_TYPE=$LINK_TYPE
177+ echo LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/install/$LINK_TYPE/lib >> $GITHUB_ENV
178+
174179 - name : Build SmartRedis python and install
175180 run : python -m pip install -e .[dev,xarray]
176181
177182 - name : Build and install test dependencies
178183 run : |
179- make test-deps &&
180- echo "LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PWD/install/lib" >> $GITHUB_ENV
184+ make test-deps
181185
182186 # Make sure the examples work
183187 - name : Run examples
184188 run : |
185- make test-examples SR_FORTRAN=ON SR_PYTHON=ON SR_LINK=$LINK_TYPE \
186- SR_TEST_PORT=7000 SR_TEST_REDISAI_VER=v${{ matrix.rai_v }}
189+ make test-examples INSTALL_PREFIX=$PWD/install/$LINK_TYPE \
190+ BUILD_FORTRAN=ON BUILD_PYTHON=ON LINK_TYPE=$LINK_TYPE \
191+ SR_TEST_PORT=7000 SR_TEST_REDISAI_VER=v${{ matrix.rai_v }} \
192+ INSTALL_PREFIX=$PWD/install/$LINK_TYPE
187193
188194 # Run the tests using various DB deployments
189195 - name : Run tests
190196 run : |
191- make test-verbose-with-coverage \
197+ make test-verbose-with-coverage INSTALL_PREFIX=$PWD/install/$LINK_TYPE \
192198 COV_FLAGS="--cov=./src/python/module/smartredis/ --cov-report=xml --cov-append" \
193- SR_FORTRAN =ON SR_PYTHON =ON SR_TEST_REDIS_MODE=All SR_TEST_PORT=7000 SR_LINK =$LINK_TYPE \
199+ BUILD_FORTRAN =ON BUILD_PYTHON =ON SR_TEST_REDIS_MODE=All SR_TEST_PORT=7000 LINK_TYPE =$LINK_TYPE \
194200 SR_TEST_REDISAI_VER=v${{ matrix.rai_v }}
195201
196202 # Process and upload code coverage (Python was collected during pytest)
197203 - name : Collect coverage from C/C++/Fortran testers
198204 run : third-party/lcov/install/bin/lcov --ignore-errors gcov,mismatch --keep-going -c -d build/Coverage/CMakeFiles -o coverage.info
199205
200206 - name : Upload coverage to Codecov
201- uses : codecov/codecov-action@v3
207+ uses : codecov/codecov-action@v4.5.0
202208 with :
203209 files : ./coverage.xml, ./coverage.info
204210
0 commit comments