Skip to content

Commit

Permalink
Testing new way of making Python 2.7 work.
Browse files Browse the repository at this point in the history
  • Loading branch information
zond committed Jun 3, 2024
1 parent cea6b5d commit af23798
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
11 changes: 4 additions & 7 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,10 @@ jobs:
check-latest: true
- name: Check Go version
run: go version
- name: Set up GoogleCloudPlatform
uses: google-github-actions/setup-gcloud@v0
- name: Set up Python 2.7
run: sudo apt install python2.7
- name: Set up Cloud SDK
uses: google-github-actions/setup-gcloud@v2
- name: Debug log GoogleCloudPlatform info
run: gcloud info
- name: Install App Engine Go
Expand All @@ -28,11 +30,6 @@ jobs:
run: echo "GCLOUD_ROOT=$(gcloud info | grep 'Installation Root:' | sed -e 's/.*\[\([^]]\+\).*/\1/')" >> $GITHUB_ENV
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python2.7
uses: actions/setup-python@v4
id: setup-python2
with:
python-version: 2.7
- name: Start test server
run: ${GITHUB_WORKSPACE}/diptest/start_test_server.sh
- name: Run tests
Expand Down
3 changes: 3 additions & 0 deletions diptest/start_test_server.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
#!/bin/bash

echo "Python version:"
python --version
echo "Starting dev_appserver.py"
${GCLOUD_ROOT}/bin/dev_appserver.py --require_indexes --skip_sdk_update_check=true --clear_datastore=true --datastore_consistency_policy=consistent ${GITHUB_WORKSPACE}/app.yaml > /tmp/start_test_server.log 2>&1 &
tail -f /tmp/start_test_server.log &
echo "Waiting for it to start serving"
while ! curl -s -o /dev/null http://localhost:8080/; do
sleep 10
Expand Down

0 comments on commit af23798

Please sign in to comment.