-
Notifications
You must be signed in to change notification settings - Fork 1.8k
feat(django-google-spanner): support Django 6.0 #18128
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
sakthivelmanii
wants to merge
3
commits into
main
Choose a base branch
from
add-django-6.0-support
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| permissions: | ||
| contents: read | ||
|
|
||
| on: | ||
| pull_request: | ||
| paths: | ||
| - 'packages/django-google-spanner/**' | ||
| - '.github/workflows/django-spanner-django6.0_tests.yml' | ||
| push: | ||
| branches: | ||
| - main | ||
| paths: | ||
| - 'packages/django-google-spanner/**' | ||
| - '.github/workflows/django-spanner-django6.0_tests.yml' | ||
|
|
||
| defaults: | ||
| run: | ||
| working-directory: packages/django-google-spanner | ||
|
|
||
| name: django-spanner-django6.0-tests | ||
| jobs: | ||
| check_changes: | ||
| runs-on: ubuntu-latest | ||
| outputs: | ||
| run_django_spanner: ${{ steps.filter.outputs.django_spanner }} | ||
| steps: | ||
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: dorny/paths-filter@fbd0ab8f3e69293af611ebaee6363fc25e6d187d # v4.0.1 | ||
| id: filter | ||
| with: | ||
| filters: | | ||
| django_spanner: | ||
| - 'packages/django-google-spanner/**' | ||
| - '.github/workflows/django-spanner-django6.0_tests.yml' | ||
|
|
||
| system-tests: | ||
| needs: check_changes | ||
| if: ${{ needs.check_changes.outputs.run_django_spanner == 'true' }} | ||
| runs-on: ubuntu-latest | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| chunk: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9] | ||
| include: | ||
| - chunk: 0 | ||
| apps: admin_changelist admin_ordering distinct_on_fields expressions_window fixtures_model_package datetimes custom_methods generic_inline_admin field_defaults datatypes empty m2o_recursive many_to_one_null migrate_signals model_forms.test_uuid view_tests update select_related_onetoone sessions_tests | ||
| - chunk: 1 | ||
| 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 | ||
| - chunk: 2 | ||
| apps: model_options known_related_objects m2m_signals delete_regress fixtures generic_views model_inheritance_regress nested_foreign_keys lookup delete model_formsets | ||
| - chunk: 3 | ||
| apps: signals or_lookups m2m_through_regress filtered_relation servers m2m_through fixtures_regress timezones model_forms.tests | ||
| - chunk: 4 | ||
| 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 | ||
| - chunk: 5 | ||
| 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 | ||
| - chunk: 6 | ||
| apps: model_fields queries.test_bulk_update queries.test_explain | ||
| - chunk: 7 | ||
| apps: queries.test_iterator queries.test_q queries.test_query queries.test_qs_combinators | ||
| - chunk: 8 | ||
| apps: inspectdb custom_managers migrations validation get_earliest_or_latest proxy_model_inheritance one_to_one raw_query bulk_create | ||
| - chunk: 9 | ||
| apps: queries.tests | ||
|
|
||
| services: | ||
| emulator: | ||
| image: gcr.io/cloud-spanner-emulator/emulator:latest # zizmor: ignore[unpinned-images] | ||
| ports: | ||
| - 9010:9010 | ||
|
|
||
| steps: | ||
| - name: Checkout code | ||
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | ||
| with: | ||
| persist-credentials: false | ||
| - name: Setup Python | ||
| uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 | ||
| with: | ||
| python-version: "3.12" | ||
| - name: Run Django tests | ||
| run: sh django_test_suite_6.0.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: ${{ matrix.apps }} |
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
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
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
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.