Skip to content

Commit

Permalink
fix scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
korgan00 committed Nov 28, 2024
1 parent b1e5e1a commit 8e5571d
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 7 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/docker-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
run: |
cd tests/basic
rm ./06_function.py
rm ./test_docker.py
for f in *.py; do echo "$f" && python "$f" &>> basic.log; done
done=$(cat basic.log | grep -c "DONE")
if [[ $done == 4 ]]
Expand All @@ -55,7 +54,6 @@ jobs:
shell: bash
run: |
cd tests/experimental
rm ./test_docker_experimental.py
for f in *.py; do echo "$f" && python "$f" &>> experimental.log; done
done=$(cat experimental.log | grep -c "DONE")
if [[ $done == 6 ]]
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/kubernetes-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -85,11 +85,9 @@ jobs:
# basic tests
cd /home/runner/work/qiskit-serverless/qiskit-serverless/tests/basic
rm 06_function.py
rm test_docker.py
for f in *.py; do echo "TEST: $f" && python "$f"; done
# experimental tests
cd /home/runner/work/qiskit-serverless/qiskit-serverless/tests/experimental
rm ./test_docker_experimental.py
for f in *.py; do echo "TEST: $f" && python "$f"; done
- uses: chainguard-dev/actions/kind-diag@main
# Only upload logs on failure.
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/notebook-local-verify.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ jobs:
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/basic/test_docker.py
rm tests/experimental/file_download.py
rm tests/experimental/manage_data_directory.py
rm tests/experimental/test_docker_experimental.py
- name: install dependencies
shell: bash
run: pip install client/
Expand Down
2 changes: 1 addition & 1 deletion tests/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ commands =
skip_install = true
commands =
black --diff --check .
pylint -rn docker/*
pylint -rn docker/test_* docker/conftest.py

[testenv:black]
skip_install = true
Expand Down

0 comments on commit 8e5571d

Please sign in to comment.