Skip to content

Commit 2cfa8cd

Browse files
committed
Test on github actions
Add CI on github actions.
1 parent 5dbbce8 commit 2cfa8cd

1 file changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/python-ci.yaml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
jobs:
1111
build:
1212
runs-on: ubuntu-latest
13+
14+
env:
15+
DATASTORE_EMULATOR_HOST: "localhost:8081"
1316

1417
steps:
1518
- name: Checkout code
@@ -19,13 +22,25 @@ jobs:
1922
uses: actions/setup-python@v5
2023
with:
2124
python-version: '3.13'
22-
25+
26+
- name: Set up Java (required for Datastore emulator)
27+
uses: actions/setup-java@v4
28+
with:
29+
distribution: 'temurin'
30+
java-version: '21'
31+
2332
- name: 'Set up Cloud SDK'
2433
uses: 'google-github-actions/setup-gcloud@v2'
2534
with:
26-
install_components: 'cloud-datastore-emulator'
35+
install_components: 'beta,cloud-datastore-emulator'
36+
37+
- name: 'Verify gcloud setup'
38+
run: |
39+
gcloud --version
40+
which gcloud
41+
gcloud components list --filter="id:cloud-datastore-emulator" --format="table(id,state.name)"
2742
28-
- name: 'Use gcloud CLI'
43+
- name: 'Configure gcloud project'
2944
run: 'gcloud config set project python-datastore-sqlalchemy'
3045

3146
- name: Install dependencies

0 commit comments

Comments
 (0)