Skip to content

Commit 1f694f1

Browse files
authored
Merge pull request #510 from CrayLabs/develop
Release v0.6.0
2 parents f4913cb + 602f283 commit 1f694f1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+937
-1265
lines changed

.github/workflows/build_wheels.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,6 @@ jobs:
8888
- name: Build wheels
8989
run: python -m cibuildwheel --output-dir wheelhouse
9090

91-
- uses: actions/upload-artifact@v2
91+
- uses: actions/upload-artifact@v3
9292
with:
9393
path: ./wheelhouse/*.whl

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ jobs:
9090
- name: Build wheels
9191
run: python -m cibuildwheel --output-dir wheelhouse
9292

93-
- uses: actions/upload-artifact@v2
93+
- uses: actions/upload-artifact@v3
9494
with:
9595
path: ./wheelhouse/*.whl
9696

@@ -110,7 +110,7 @@ jobs:
110110
sudo apt-get install cmake
111111
python setup.py sdist
112112
113-
- uses: actions/upload-artifact@v2
113+
- uses: actions/upload-artifact@v3
114114
with:
115115
path: dist/*.tar.gz
116116

@@ -119,7 +119,7 @@ jobs:
119119
needs: [build_wheels, build_sdist]
120120
runs-on: ubuntu-latest
121121
steps:
122-
- uses: actions/download-artifact@v2
122+
- uses: actions/download-artifact@v3
123123
with:
124124
name: artifact
125125
path: dist

.github/workflows/run_tests.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)