Skip to content

Commit

Permalink
Update python-api-client-tests.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
zelosleone committed Dec 25, 2024
1 parent 2486577 commit 3b609fd
Showing 1 changed file with 16 additions and 2 deletions.
18 changes: 16 additions & 2 deletions .github/workflows/python-api-client-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
Expand All @@ -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: |
Expand Down

0 comments on commit 3b609fd

Please sign in to comment.