Skip to content

Commit de5d34a

Browse files
committed
Run tests automatically
1 parent 987c1dc commit de5d34a

File tree

3 files changed

+1
-2
lines changed

3 files changed

+1
-2
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ jobs:
2323
sudo make install
2424
- run: cmake -S test -B test/build
2525
- run: cmake --build test/build
26-
- run: test/build/pqxx_test
2726

2827
# test install
2928
- run: cmake -S . -B build

README.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,6 @@ cd pgvector-cpp
108108
createdb pgvector_cpp_test
109109
cmake -S test -B test/build
110110
cmake --build test/build
111-
test/build/pqxx_test
112111
```
113112

114113
To run an example:

test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,3 +16,4 @@ add_subdirectory("${PROJECT_SOURCE_DIR}/.." pgvector)
1616

1717
add_executable(pqxx_test pqxx_test.cpp)
1818
target_link_libraries(pqxx_test PRIVATE libpqxx::pqxx pgvector::pgvector)
19+
add_custom_command(TARGET pqxx_test POST_BUILD COMMAND "${CMAKE_CURRENT_BINARY_DIR}/pqxx_test")

0 commit comments

Comments
 (0)