forked from googleapis/google-cloud-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdjango-spanner-foreign_keys.yaml
More file actions
39 lines (35 loc) · 944 Bytes
/
django-spanner-foreign_keys.yaml
File metadata and controls
39 lines (35 loc) · 944 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
on:
pull_request:
paths:
- 'packages/django-google-spanner/**'
push:
branches:
- main
paths:
- 'packages/django-google-spanner/**'
defaults:
run:
working-directory: packages/django-google-spanner
name: foreign-keys-test
jobs:
system-tests:
runs-on: ubuntu-latest
services:
emulator-0:
image: gcr.io/cloud-spanner-emulator/emulator:latest
ports:
- 9010:9010
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: 3.8
- name: Run Django foreign key test
run: sh foreign_key_test.sh
env:
SPANNER_EMULATOR_HOST: localhost:9010
GOOGLE_CLOUD_PROJECT: emulator-test-project
GOOGLE_CLOUD_TESTS_CREATE_SPANNER_INSTANCE: true
SPANNER_TEST_INSTANCE: google-cloud-django-backend-tests