From 9d583993c13c257ff5c8758f07de6f3bec526532 Mon Sep 17 00:00:00 2001 From: Gregorio Iniesta Date: Wed, 11 Dec 2024 18:55:28 +0100 Subject: [PATCH] delete notebook local verify --- .github/workflows/notebook-local-verify.yaml | 41 ------------------- .../core/clients/local_client.py | 2 +- 2 files changed, 1 insertion(+), 42 deletions(-) delete mode 100644 .github/workflows/notebook-local-verify.yaml diff --git a/.github/workflows/notebook-local-verify.yaml b/.github/workflows/notebook-local-verify.yaml deleted file mode 100644 index 8a280c3c0..000000000 --- a/.github/workflows/notebook-local-verify.yaml +++ /dev/null @@ -1,41 +0,0 @@ -name: Notebook LocalClient tests - -on: - pull_request: - branches: [ main ] - -permissions: - contents: read - -jobs: - tests: - runs-on: ubuntu-latest - timeout-minutes: 10 - steps: - - uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 #4.1.7 - - uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f #5.1.1 - with: - python-version: '3.11' - - name: patch notebooks - shell: bash - run: | - for f in tests/basic/*.py; do sed -i "s/import ServerlessClient/import LocalClient/;s/= ServerlessClient(/= LocalClient(/;/token=os\.environ\.get/d;/host=os\.environ\.get/d" "$f"; done - for f in tests/experimental/*.py; do sed -i "s/import ServerlessClient/import LocalClient/;s/= ServerlessClient(/= LocalClient(/;/token=os\.environ\.get/d;/host=os\.environ\.get/d" "$f"; done - rm tests/basic/06_function.py - rm tests/experimental/file_download.py - rm tests/experimental/manage_data_directory.py - - name: install dependencies - shell: bash - run: pip install client/ - - name: Run basic notebooks - shell: bash - run: | - cd tests/basic - for f in *.py; do echo "$f" && IN_TEST=True python "$f"; done - cd - - - name: Run experimental notebooks - shell: bash - run: | - cd tests/experimental - for f in *.py; do echo "$f" && IN_TEST=True python "$f"; done - cd - diff --git a/client/qiskit_serverless/core/clients/local_client.py b/client/qiskit_serverless/core/clients/local_client.py index 46421b7ec..9966df0e1 100644 --- a/client/qiskit_serverless/core/clients/local_client.py +++ b/client/qiskit_serverless/core/clients/local_client.py @@ -120,7 +120,7 @@ def run( with Popen( [ "python", - os.path.join(saved_program.working_dir, saved_program.entrypoint) + os.path.join(saved_program.working_dir, saved_program.entrypoint), ], stdout=subprocess.PIPE, stderr=subprocess.PIPE,