From 03820ffeb038bb306319a3b6926ae8ce98a301f2 Mon Sep 17 00:00:00 2001 From: Popov Dmitriy Ivanovich Date: Fri, 17 Nov 2023 18:59:07 +0300 Subject: [PATCH] Use CI/CD to copy input datasets for python_bindings tests --- .github/workflows/bindings-tests.yml | 3 +++ src/python_bindings/CMakeLists.txt | 10 ---------- 2 files changed, 3 insertions(+), 10 deletions(-) diff --git a/.github/workflows/bindings-tests.yml b/.github/workflows/bindings-tests.yml index a8ab07f2e1..a31d105e1a 100644 --- a/.github/workflows/bindings-tests.yml +++ b/.github/workflows/bindings-tests.yml @@ -21,6 +21,9 @@ jobs: shell: bash run: | cp test_input_data/WDC_satellites.csv src/python_bindings/ + cp test_input_data/TestLong.csv src/python_bindings/ + cp test_input_data/TestWide.csv src/python_bindings/ + cp test_input_data/transactional_data/rules-kaggle-rows.csv /src/python_bindings/ pip install . cd src/python_bindings python test_bindings.py diff --git a/src/python_bindings/CMakeLists.txt b/src/python_bindings/CMakeLists.txt index 6770459920..cf91c7324d 100644 --- a/src/python_bindings/CMakeLists.txt +++ b/src/python_bindings/CMakeLists.txt @@ -7,13 +7,3 @@ target_link_libraries(${BINDINGS_NAME} PRIVATE ${CMAKE_PROJECT_NAME}_lib) if (PYTHON STREQUAL INSTALL) install(TARGETS ${BINDINGS_NAME} LIBRARY DESTINATION .) endif() - -#copy test data to destination dirrectory -add_custom_command(TARGET ${BINDINGS_NAME} - COMMAND ${CMAKE_COMMAND} -E - copy ${CMAKE_SOURCE_DIR}/test_input_data/transactional_data/rules-kaggle-rows.csv - ${CMAKE_SOURCE_DIR}/test_input_data/TestLong.csv - ${CMAKE_SOURCE_DIR}/test_input_data/TestWide.csv - #${CMAKE_SOURcE_DIR}/test_input_data/WDC_satellites.csv - ${CMAKE_CURRENT_SOURCE_DIR} -) \ No newline at end of file