Merge branch 'main' of https://github.com/asthamohta/python-spanner-d… #2
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 Django Spanner integration tests against emulator 3.9 | ||
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@v3 | ||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
- name: Install nox | ||
run: python -m pip install nox | ||
with: | ||
python-version: 3.9 | ||
- name: Run nox | ||
run: nox -s unit-3.9 | ||
env: | ||
SPANNER_EMULATOR_HOST: localhost:9010 | ||
GOOGLE_CLOUD_PROJECT: emulator-test-project | ||
GOOGLE_CLOUD_TESTS_CREATE_SPANNER_INSTANCE: true |