Skip to content

Commit

Permalink
Add c++ tests to github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
markkohdev committed Aug 19, 2024
1 parent 598e9e6 commit 3d77a56
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -237,9 +237,13 @@ jobs:
submodules: recursive
- name: Install Linux dependencies
if: runner.os == 'Linux'
run: sudo apt-get update && sudo apt-get install -y pkg-config
- name: Build voyager locally
run: sudo apt-get update && sudo apt-get install -y pkg-config
- name: Run CMake
uses: threeal/[email protected]
- name: Build C++
run: make test
- name: Build and test
run: ./test

build-python-wheels:
needs: [run-python-tests, run-python-tests-with-address-sanitizer]
Expand Down
2 changes: 1 addition & 1 deletion cpp/test/test_main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ TEST_CASE("Test combinations of different instantiations and sizes") {
testCombination(index, spaceType, numDimensions, storageType);
} else if (storageType == StorageDataType::E4M3) {
auto index = TypedIndex<float, E4M3>(spaceType, numDimensions);
testCombination(index, spaceType, 20, storageType);
testCombination(index, spaceType, numDimensions, storageType);
}
}
}
Expand Down

0 comments on commit 3d77a56

Please sign in to comment.