Skip to content

Commit 2182fec

Browse files
committed
Apply the same change to v2 ci.
1 parent 9317b24 commit 2182fec

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

.github/workflows/ci-v2.yaml

+9-5
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,11 @@ jobs:
1717
working-directory: ./v2
1818

1919
steps:
20-
- name: Update base image and install Python2
20+
- name: Update base image, intall Python2 and Python3
2121
run: |
2222
sudo apt-get update
23-
sudo apt-get install -y python2
23+
sudo apt-get install -y python2
24+
sudo apt-get install -y python3
2425
- name: Set up Go
2526
uses: actions/setup-go@v2
2627
with:
@@ -51,6 +52,7 @@ jobs:
5152
working-directory: ${{env.working-directory}}
5253
run: |
5354
export APPENGINE_DEV_APPSERVER=$(which dev_appserver.py)
55+
export CLOUDSDK_PYTHON="python3"
5456
go test -v -cover -race google.golang.org/appengine/v2/...
5557
# TestAPICallAllocations doesn't run under race detector.
5658
go test -v -cover google.golang.org/appengine/v2/internal/... -run TestAPICallAllocations
@@ -64,12 +66,13 @@ jobs:
6466
go-version: [ '1.11.x', '1.12.x']
6567
env:
6668
working-directory: ./v2
67-
69+
6870
steps:
69-
- name: Update base image and intall Python2
71+
- name: Update base image, intall Python2 and Python3
7072
run: |
7173
sudo apt-get update
72-
sudo apt-get install -y python2
74+
sudo apt-get install -y python2
75+
sudo apt-get install -y python3
7376
- name: Set up Go
7477
uses: actions/setup-go@v2
7578
with:
@@ -99,6 +102,7 @@ jobs:
99102
working-directory: ${{env.working-directory}}
100103
run: |
101104
export APPENGINE_DEV_APPSERVER=$(which dev_appserver.py)
105+
export CLOUDSDK_PYTHON="python3"
102106
go test -v -cover -race google.golang.org/appengine/v2/...
103107
# TestAPICallAllocations doesn't run under race detector.
104108
go test -v -cover google.golang.org/appengine/v2/internal/... -run TestAPICallAllocations

v2/aetest/instance.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func fileExists(path string) bool {
167167
}
168168

169169
func findPython() (path string, err error) {
170-
for _, name := range []string{"python2.7", "python"} {
170+
for _, name := range []string{"python3"} {
171171
path, err = exec.LookPath(name)
172172
if err == nil {
173173
return

0 commit comments

Comments
 (0)