Skip to content

Commit

Permalink
Add more Django test apps to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
timgraham committed Mar 2, 2022
1 parent 5f1fd1f commit b968590
Show file tree
Hide file tree
Showing 5 changed files with 339 additions and 14 deletions.
28 changes: 14 additions & 14 deletions .github/workflows/tests.yml → .github/workflows/tests1.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Tests
name: Tests I

on:
pull_request:
Expand Down Expand Up @@ -36,25 +36,25 @@ jobs:
- name: Run the tests
run: >
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
admin_changelist
admin_custom_urls
admin_docs
admin_filters
admin_inlines
admin_ordering
admin_utils
admin_views
aggregation
aggregation_regress
annotations
auth_tests
backends
basic
bulk_create
dates
datetimes
db_functions
expressions
expressions_window
inspectdb
introspection
lookup
migrations
model_fields
queries
schema
timezones
cache
check_framework
constraints
contenttypes_tests
env:
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
Expand Down
68 changes: 68 additions & 0 deletions .github/workflows/tests2.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,68 @@
name: Tests II

on:
pull_request:
paths:
- '**.py'
- '!setup.py'
- '.github/workflows/tests1.yml'

jobs:
django-tests:
runs-on: ubuntu-latest
name: Django Test Suite
steps:
- name: Checkout django-snowflake
uses: actions/checkout@v2
- name: Checkout Django
uses: actions/checkout@v2
with:
repository: 'timgraham/django'
ref: 'remove-query-quotes'
path: 'django_repo'
- name: Install system packages for Django's Python test dependencies
run: |
sudo apt-get update
sudo apt-get install libmemcached-dev
- name: Install Django and its Python test dependencies
run: |
cd django_repo/tests/
pip3 install -e ..
pip3 install -r requirements/py3.txt
- name: install the django-snowflake backend
run: pip3 install .
- name: Copy the test settings file
run: cp .github/workflows/snowflake_settings.py django_repo/tests/
- name: Run the tests
run: >
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
custom_columns
custom_lookups
custom_managers
custom_methods
custom_pk
datatypes
dates
datetimes
db_functions
db_typecasts
db_utils
defer
defer_regress
delete
delete_regress
empty
expressions
expressions_case
expressions_window
extra_regress
field_defaults
field_subclassing
file_storage
file_uploads
filtered_relation
env:
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
85 changes: 85 additions & 0 deletions .github/workflows/tests3.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
name: Tests III

on:
pull_request:
paths:
- '**.py'
- '!setup.py'
- '.github/workflows/tests1.yml'

jobs:
django-tests:
runs-on: ubuntu-latest
name: Django Test Suite
steps:
- name: Checkout django-snowflake
uses: actions/checkout@v2
- name: Checkout Django
uses: actions/checkout@v2
with:
repository: 'timgraham/django'
ref: 'remove-query-quotes'
path: 'django_repo'
- name: Install system packages for Django's Python test dependencies
run: |
sudo apt-get update
sudo apt-get install libmemcached-dev
- name: Install Django and its Python test dependencies
run: |
cd django_repo/tests/
pip3 install -e ..
pip3 install -r requirements/py3.txt
- name: install the django-snowflake backend
run: pip3 install .
- name: Copy the test settings file
run: cp .github/workflows/snowflake_settings.py django_repo/tests/
- name: Run the tests
run: >
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
force_insert_update
foreign_object
forms_tests
from_db_value
generic_inline_admin
generic_relations
generic_relations_regress
generic_views
get_earliest_or_latest
get_object_or_404
get_or_create
i18n
inline_formsets
inspectdb
introspection
invalid_models_tests
known_related_objects
lookup
m2m_and_m2o
m2m_intermediary
m2m_multiple
m2m_recursive
m2m_regress
m2m_signals
m2m_through
m2m_through_regress
m2o_recursive
managers_regress
many_to_many
many_to_one
many_to_one_null
max_lengths
migrate_signals
migrations
migration_test_data_persistence
modeladmin
model_inheritance
model_inheritance_regress
model_meta
model_options
model_package
model_regress
env:
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
91 changes: 91 additions & 0 deletions .github/workflows/tests4.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
name: Tests IV

on:
pull_request:
paths:
- '**.py'
- '!setup.py'
- '.github/workflows/tests1.yml'

jobs:
django-tests:
runs-on: ubuntu-latest
name: Django Test Suite
steps:
- name: Checkout django-snowflake
uses: actions/checkout@v2
- name: Checkout Django
uses: actions/checkout@v2
with:
repository: 'timgraham/django'
ref: 'remove-query-quotes'
path: 'django_repo'
- name: Install system packages for Django's Python test dependencies
run: |
sudo apt-get update
sudo apt-get install libmemcached-dev
- name: Install Django and its Python test dependencies
run: |
cd django_repo/tests/
pip3 install -e ..
pip3 install -r requirements/py3.txt
- name: install the django-snowflake backend
run: pip3 install .
- name: Copy the test settings file
run: cp .github/workflows/snowflake_settings.py django_repo/tests/
- name: Run the tests
run: >
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
model_fields
model_forms
model_formsets
model_formsets_regress
mutually_referential
nested_foreign_keys
null_fk
null_fk_ordering
null_queries
one_to_one
ordering
order_with_respect_to
or_lookups
pagination
prefetch_related
properties
proxy_model_inheritance
proxy_models
queries
queryset_pickle
raw_query
reserved_names
reverse_lookup
save_delete_hooks
schema
select_for_update
select_related
select_related_onetoone
select_related_regress
serializers
servers
signals
sitemaps_tests
sites_framework
sites_tests
string_lookup
swappable_models
syndication_tests
test_client
test_client_regress
timezones
transaction_hooks
transactions
unmanaged_models
update
update_only_fields
validation
view_tests
env:
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}
Loading

0 comments on commit b968590

Please sign in to comment.