From e89778185ebdb441c39c4ca7845ea45eed64b8ed Mon Sep 17 00:00:00 2001 From: Philippe Verney Date: Thu, 21 Nov 2024 10:02:11 +0100 Subject: [PATCH] Add test after wheel building --- .github/workflows/github-actions.yml | 2 ++ python/example/etp_client_example.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/github-actions.yml b/.github/workflows/github-actions.yml index 3dfd57b..299369b 100644 --- a/.github/workflows/github-actions.yml +++ b/.github/workflows/github-actions.yml @@ -235,6 +235,7 @@ jobs: CIBW_REPAIR_WHEEL_COMMAND_LINUX: > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/fesapi-install/lib64:/fetpapi-install/lib64 && auditwheel repair -w {dest_dir} {wheel} + CIBW_TEST_COMMAND: python {project}/python/example/etp_client_example.py with: package-dir: ./python output-dir: wheelhouse @@ -305,6 +306,7 @@ jobs: # See https://cibuildwheel.pypa.io/en/stable/faq/#macos-passing-dyld_library_path-to-delocate CIBW_REPAIR_WHEEL_COMMAND_MACOS: > DYLD_LIBRARY_PATH=${{ github.workspace }}/../fesapi-install/lib:${{ github.workspace }}/../fetpapi-install/lib delocate-wheel --require-archs {delocate_archs} -w {dest_dir} {wheel} + CIBW_TEST_COMMAND: python ${{ github.workspace }}/python/example/etp_client_example.py with: package-dir: ./python output-dir: wheelhouse diff --git a/python/example/etp_client_example.py b/python/example/etp_client_example.py index 7fd1370..69cfb6e 100644 --- a/python/example/etp_client_example.py +++ b/python/example/etp_client_example.py @@ -10,8 +10,8 @@ def start_etp_server(client_session): client_session.run() print('Client session do no more run...') -etp_server_url = "wss://..." -authorization = "Bearer ..." +etp_server_url = "ws://etp.f2i-consulting.com:9002/" +authorization = "Basic Zm9vOmJhcg==" initialization_params = fetpapi.InitializationParameters(str(uuid.uuid4()), etp_server_url) # OSDU RDDMS requires some additional header fields compared to ETP server additionalHeaderField = fetpapi.MapStringString()