8000 ci: add GitHub action for emulator system tests (#114) · googleapis/python-spanner@0a175d6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 0a175d6

Browse files
authored
ci: add GitHub action for emulator system tests (#114)
1 parent edfefc8 commit 0a175d6

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
on:
2+
push:
3+
branches:
4+
- master
5+
pull_request:
6+
name: Run Spanner integration tests against emulator
7+
jobs:
8+
system-tests:
9+
runs-on: ubuntu-latest
10+
11+
services:
12+
emulator:
13+
image: gcr.io/cloud-spanner-emulator/emulator:latest
14+
ports:
15+
- 9010:9010
16+
- 9020:9020
17+
18+
steps:
19+
- name: Checkout code
20+
uses: actions/checkout@v2
21+
- name: Setup Python
22+
uses: actions/setup-python@v2
23+
with:
24+
python-version: 3.7
25+
- name: Install nox
26+
run: python -m pip install nox
27+
- name: Run system tests
28+
run: nox -s system-3.7
29+
env:
30+
SPANNER_EMULATOR_HOST: localhost:9010
31+
GOOGLE_CLOUD_PROJECT: emulator-test-project
32+
GOOGLE_CLOUD_TESTS_CREATE_SPANNER_INSTANCE: true

0 commit comments

Comments
 (0)
0