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,