feat: Exposing InstanceType in Instance configuration (to define PROVISIONED or FREE spanner instance) #4014
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
name: Run Spanner integration tests against emulator | |
jobs: | |
system-tests: | |
runs-on: ubuntu-latest | |
services: | |
emulator: | |
image: gcr.io/cloud-spanner-emulator/emulator:latest | |
ports: | |
- 9010:9010 | |
- 9020:9020 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Setup Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.8 | |
- name: Install nox | |
run: python -m pip install nox | |
- name: Run system tests | |
run: nox -s system | |
env: | |
SPANNER_EMULATOR_HOST: localhost:9010 | |
GOOGLE_CLOUD_PROJECT: emulator-test-project | |
GOOGLE_CLOUD_TESTS_CREATE_SPANNER_INSTANCE: true |