Skip to content

Commit

Permalink
Enable CI/CD tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dudoslav committed May 20, 2024
1 parent 51723fd commit cff8080
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 7 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/build-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,13 @@ jobs:
CIBW_ARCHS: all
CIBW_PRERELEASE_PYTHONS: True
CIBW_BUILD: ${{ matrix.python }}-${{ matrix.buildplat[1] }}
CIBW_TEST_REQUIRES: pytest
# This command should be just `pytest`, however, our tests require test data and those are only in the
# original {project} folder. The cibuildwheel logic unfortunately creates an empty folder for tests, changes
# directory there and so our tests will search for data folder in a completely different working directory.
CIBW_TEST_COMMAND: "pytest"
CIBW_ENVIRONMENT: TILEDB_REST_TOKEN=${{ secrets.TILEDB_CLOUD_HELPER_VAR }}
SYSTEM_VERSION_COMPAT: ${{ startsWith(matrix.os, 'macos-') }}
with:
output-dir: wheelhouse

Expand Down
10 changes: 5 additions & 5 deletions tiledb/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ install(TARGETS main libtiledb DESTINATION tiledb)
if(TILEDB_DOWNLOADED)
message(STATUS "Adding libtiledb.so into install group")

install(IMPORTED_RUNTIME_ARTIFACTS TileDB::tiledb_shared DESTINATION tiledb/lib)
install(IMPORTED_RUNTIME_ARTIFACTS TileDB::tiledb_shared DESTINATION tiledb)

if (APPLE)
set_target_properties(main PROPERTIES INSTALL_RPATH "@loader_path/lib")
set_target_properties(libtiledb PROPERTIES INSTALL_RPATH "@loader_path/lib")
set_target_properties(main PROPERTIES INSTALL_RPATH "@loader_path")
set_target_properties(libtiledb PROPERTIES INSTALL_RPATH "@loader_path")
elseif(UNIX)
set_target_properties(main PROPERTIES INSTALL_RPATH "\$ORIGIN/lib")
set_target_properties(libtiledb PROPERTIES INSTALL_RPATH "\$ORIGIN/lib")
set_target_properties(main PROPERTIES INSTALL_RPATH "\$ORIGIN")
set_target_properties(libtiledb PROPERTIES INSTALL_RPATH "\$ORIGIN")
endif()
endif()

Expand Down
4 changes: 2 additions & 2 deletions tiledb/cc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ install(TARGETS cc DESTINATION tiledb)

if(TILEDB_DOWNLOADED)
if (APPLE)
set_target_properties(cc PROPERTIES INSTALL_RPATH "@loader_path/lib")
set_target_properties(cc PROPERTIES INSTALL_RPATH "@loader_path")
elseif(UNIX)
set_target_properties(cc PROPERTIES INSTALL_RPATH "\$ORIGIN/lib")
set_target_properties(cc PROPERTIES INSTALL_RPATH "\$ORIGIN")
endif()
endif()

0 comments on commit cff8080

Please sign in to comment.