Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: merge django 2.2 and django 3.2 branches into 1 branch (#717)
* docs: lint fix for samples * !feat: merge django 3.2 and 2.2 into single release * fix: correct django3 import order * fix: correct django3 import order * fix: add unsupported tests in skipped tests * refactor: cleanup imports * fix: skip tests that assume serial pk * refactor: rearaange skipped test specific to django version * refactor: rearaange skipped test specific to django version * refactor: rearaange skipped test specific to django version
- Loading branch information
Showing
34 changed files
with
1,391 additions
and
319 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
name: django3.2-tests0 | ||
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@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
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: admin_changelist admin_ordering aggregation distinct_on_fields expressions_window fixtures_model_package datetimes custom_methods generic_inline_admin field_defaults datatypes empty m2o_recursive many_to_one_null migration_test_data_persistence admin_docs invalid_models_tests migrate_signals model_forms.test_uuid model_forms.test_modelchoicefield syndication_tests view_tests update test_utils select_related_onetoone sessions_tests |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
name: django3.2-tests1 | ||
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@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
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: db_functions save_delete_hooks get_object_or_404 model_indexes custom_pk indexes transaction_hooks constraints schema custom_columns i18n from_db_value sites_tests mutually_referential model_package defer_regress update_only_fields backends redirects_tests expressions get_or_create foreign_object generic_relations_regress many_to_many select_related generic_relations queryset_pickle model_inheritance |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
name: django3.2-tests2 | ||
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@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
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_options known_related_objects m2m_signals delete_regress fixtures generic_views model_inheritance_regress nested_foreign_keys lookup delete model_formsets |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
name: django3.2-tests3 | ||
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@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
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: signals or_lookups m2m_through_regress filtered_relation servers m2m_through fixtures_regress timezones model_forms.tests |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
name: django3.2-tests4 | ||
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@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
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: introspection multiple_database null_fk_ordering ordering m2m_intermediary null_fk max_lengths dates force_insert_update test_client m2m_multiple test_client_regress sitemaps_tests admin_inlines transactions null_queries test_runner m2m_and_m2o prefetch_related m2m_regress file_uploads sites_framework auth_tests forms_tests inline_formsets order_with_respect_to contenttypes_tests defer |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
name: django3.2-tests5 | ||
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@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
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: file_storage m2m_recursive reverse_lookup managers_regress basic annotations unmanaged_models string_lookup aggregation_regress reserved_names select_for_update many_to_one cache select_related_regress flatpages_tests model_formsets_regress |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
name: django3.2-tests6 | ||
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@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
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 |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
name: django3.2-tests7 | ||
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@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
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: queries.test_iterator queries.test_q queries.test_query queries.test_qs_combinators |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
name: django3.2-tests8 | ||
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@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
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: inspectdb custom_managers migrations validation get_earliest_or_latest proxy_model_inheritance one_to_one raw_query bulk_create |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
name: django3.2-tests9 | ||
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@v2 | ||
- name: Setup Python | ||
uses: actions/setup-python@v2 | ||
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: queries.tests |
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
Oops, something went wrong.