From 3b609fd49a695e7463d19d58a12cf928fc1346ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Denizhan=20Dak=C4=B1l=C4=B1r?= <71423969+zelosleone@users.noreply.github.com> Date: Wed, 25 Dec 2024 05:40:41 +0300 Subject: [PATCH] Update python-api-client-tests.yaml --- .github/workflows/python-api-client-tests.yaml | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-api-client-tests.yaml b/.github/workflows/python-api-client-tests.yaml index c063ff6ff3..bd489c7963 100644 --- a/.github/workflows/python-api-client-tests.yaml +++ b/.github/workflows/python-api-client-tests.yaml @@ -122,6 +122,9 @@ jobs: - name: Initialize Golem Configuration run: | + # Install expect + sudo apt-get update && sudo apt-get install -y expect + # Create .env file with custom configuration cat << EOF > .env GOLEM_ROUTER_PORT=${{ env.GOLEM_ROUTER_PORT }} @@ -145,8 +148,19 @@ jobs: GOLEM_ROUTER_COMPONENT_MAX_SIZE_ALLOWED=${{ env.GOLEM_ROUTER_COMPONENT_MAX_SIZE_ALLOWED }} EOF - # Run golem-cli init with simulated input - yes "2" | cargo run --bin golem-cli init + # Create expect script + cat << 'EOF' > init.exp + #!/usr/bin/expect -f + set timeout -1 + spawn cargo run --bin golem-cli init + expect "Select database type:" + send "2\r" + expect eof + EOF + + # Make expect script executable and run it + chmod +x init.exp + ./init.exp - name: Start Golem Server run: |