Skip to content

Commit

Permalink
Add test after wheel building
Browse files Browse the repository at this point in the history
  • Loading branch information
philippeVerney committed Nov 21, 2024
1 parent 6e48e72 commit e897781
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions python/example/etp_client_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit e897781

Please sign in to comment.