Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Testing new way of making Python 2.7 work. #188

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading