Skip to content

Commit

Permalink
continue debugging workflow 24
Browse files Browse the repository at this point in the history
  • Loading branch information
nick1udwig committed Sep 11, 2024
1 parent d399f35 commit d73c6d6
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 19 deletions.
7 changes: 4 additions & 3 deletions code/ws_client/requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ fi
python -m pip install --upgrade pip

# Install packages from the requirements.txt file.
if [ -f "requirements.txt" ]; then
script_dir=$(dirname "$(crossplatform_realpath "${BASH_SOURCE[0]}")")
requirements_path = "${script_dir}/requirements.txt"
if [ -f "$requirements_path" ]; then
echo "Installing packages from requirements.txt..."
script_dir=$(dirname "$(crossplatform_realpath "${BASH_SOURCE[0]}")")
pip install -r ${script_dir}/requirements.txt
pip install -r $requirements_path
else
echo "Error: requirements.txt does not exist."
exit 0
Expand Down
3 changes: 1 addition & 2 deletions code/ws_client/test/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ setup_packages = [
{ path = "..", run = false }
]
setup_scripts = [
{ path = "ws_server/requirements.sh", args = "" },
{ path = "../ws_server.py", args = "" }
{ path = "../requirements.sh && ../ws_server.py", args = "" }
]
test_package_paths = ["ws_client_test"]
test_scripts = []
Expand Down
7 changes: 4 additions & 3 deletions code/ws_server/requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ fi
python -m pip install --upgrade pip

# Install packages from the requirements.txt file.
if [ -f "requirements.txt" ]; then
script_dir=$(dirname "$(crossplatform_realpath "${BASH_SOURCE[0]}")")
requirements_path = "${script_dir}/requirements.txt"
if [ -f "$requirements_path" ]; then
echo "Installing packages from requirements.txt..."
script_dir=$(dirname "$(crossplatform_realpath "${BASH_SOURCE[0]}")")
pip install -r ${script_dir}/requirements.txt
pip install -r $requirements_path
else
echo "Error: requirements.txt does not exist."
exit 0
Expand Down
8 changes: 4 additions & 4 deletions code/ws_server/test/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ dependency_package_paths = []
setup_packages = [
{ path = "..", run = true }
]
setup_scripts = [
{ path = "ws_server/requirements.sh", args = "" }
]
setup_scripts = []
test_package_paths = []
test_scripts = [{ path = "../ws_client.py", args = "" }]
test_scripts = [
{ path = "../requirements.sh && ../ws_client.py", args = "" }
]
timeout_secs = 5
fakechain_router = 8545

Expand Down
7 changes: 4 additions & 3 deletions code/ws_server_with_reply/requirements.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@ fi
python -m pip install --upgrade pip

# Install packages from the requirements.txt file.
if [ -f "requirements.txt" ]; then
script_dir=$(dirname "$(crossplatform_realpath "${BASH_SOURCE[0]}")")
requirements_path = "${script_dir}/requirements.txt"
if [ -f "$requirements_path" ]; then
echo "Installing packages from requirements.txt..."
script_dir=$(dirname "$(crossplatform_realpath "${BASH_SOURCE[0]}")")
pip install -r ${script_dir}/requirements.txt
pip install -r $requirements_path
else
echo "Error: requirements.txt does not exist."
exit 0
Expand Down
8 changes: 4 additions & 4 deletions code/ws_server_with_reply/test/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@ dependency_package_paths = []
setup_packages = [
{ path = "..", run = true }
]
setup_scripts = [
{ path = "ws_server/requirements.sh", args = "" }
]
setup_scripts = []
test_package_paths = []
test_scripts = [{ path = "../ws_client.py", args = "" }]
test_scripts = [
{ path = "../requirements.sh && ../ws_client.py", args = "" }
]
timeout_secs = 5
fakechain_router = 8545

Expand Down

0 comments on commit d73c6d6

Please sign in to comment.