[do not merge]chore(migration): Dry run for packages/bigframes migration #127
This file contains hidden or 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: | |
| pull_request: | |
| paths: | |
| - 'packages/django-google-spanner/**' | |
| - '.github/workflows/django-spanner-django3.2_tests_against_emulator6.yml' | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'packages/django-google-spanner/**' | |
| - '.github/workflows/django-spanner-django3.2_tests_against_emulator6.yml' | |
| defaults: | |
| run: | |
| working-directory: packages/django-google-spanner | |
| name: django3.2-tests6 | |
| jobs: | |
| check_changes: | |
| runs-on: ubuntu-latest | |
| outputs: | |
| run_django_spanner: ${{ steps.filter.outputs.django_spanner }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dorny/paths-filter@v3 | |
| id: filter | |
| with: | |
| filters: | | |
| django_spanner: | |
| - 'packages/django-google-spanner/**' | |
| - '.github/workflows/django-spanner-django3.2_tests_against_emulator6.yml' | |
| system-tests: | |
| needs: check_changes | |
| if: ${{ needs.check_changes.outputs.run_django_spanner == 'true' }} | |
| 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 tests | |
| run: sh django_test_suite_3.2.sh | |
| env: | |
| SPANNER_EMULATOR_HOST: localhost:9010 | |
| GOOGLE_CLOUD_PROJECT: emulator-test-project | |
| GOOGLE_CLOUD_TESTS_CREATE_SPANNER_INSTANCE: true | |
| RUNNING_SPANNER_BACKEND_TESTS: 1 | |
| SPANNER_TEST_INSTANCE: google-cloud-django-backend-tests | |
| DJANGO_TEST_APPS: model_fields queries.test_bulk_update queries.test_explain |