Skip to content

Commit b968590

Browse files
committed
Add more Django test apps to CI
1 parent 5f1fd1f commit b968590

File tree

5 files changed

+339
-14
lines changed

5 files changed

+339
-14
lines changed

.github/workflows/tests.yml .github/workflows/tests1.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Tests
1+
name: Tests I
22

33
on:
44
pull_request:
@@ -36,25 +36,25 @@ jobs:
3636
- name: Run the tests
3737
run: >
3838
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
39+
admin_changelist
40+
admin_custom_urls
41+
admin_docs
42+
admin_filters
43+
admin_inlines
44+
admin_ordering
45+
admin_utils
46+
admin_views
3947
aggregation
4048
aggregation_regress
4149
annotations
50+
auth_tests
4251
backends
4352
basic
4453
bulk_create
45-
dates
46-
datetimes
47-
db_functions
48-
expressions
49-
expressions_window
50-
inspectdb
51-
introspection
52-
lookup
53-
migrations
54-
model_fields
55-
queries
56-
schema
57-
timezones
54+
cache
55+
check_framework
56+
constraints
57+
contenttypes_tests
5858
env:
5959
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
6060
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}

.github/workflows/tests2.yml

+68
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
name: Tests II
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.py'
7+
- '!setup.py'
8+
- '.github/workflows/tests1.yml'
9+
10+
jobs:
11+
django-tests:
12+
runs-on: ubuntu-latest
13+
name: Django Test Suite
14+
steps:
15+
- name: Checkout django-snowflake
16+
uses: actions/checkout@v2
17+
- name: Checkout Django
18+
uses: actions/checkout@v2
19+
with:
20+
repository: 'timgraham/django'
21+
ref: 'remove-query-quotes'
22+
path: 'django_repo'
23+
- name: Install system packages for Django's Python test dependencies
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install libmemcached-dev
27+
- name: Install Django and its Python test dependencies
28+
run: |
29+
cd django_repo/tests/
30+
pip3 install -e ..
31+
pip3 install -r requirements/py3.txt
32+
- name: install the django-snowflake backend
33+
run: pip3 install .
34+
- name: Copy the test settings file
35+
run: cp .github/workflows/snowflake_settings.py django_repo/tests/
36+
- name: Run the tests
37+
run: >
38+
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
39+
custom_columns
40+
custom_lookups
41+
custom_managers
42+
custom_methods
43+
custom_pk
44+
datatypes
45+
dates
46+
datetimes
47+
db_functions
48+
db_typecasts
49+
db_utils
50+
defer
51+
defer_regress
52+
delete
53+
delete_regress
54+
empty
55+
expressions
56+
expressions_case
57+
expressions_window
58+
extra_regress
59+
field_defaults
60+
field_subclassing
61+
file_storage
62+
file_uploads
63+
filtered_relation
64+
env:
65+
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
66+
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
67+
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
68+
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}

.github/workflows/tests3.yml

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
name: Tests III
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.py'
7+
- '!setup.py'
8+
- '.github/workflows/tests1.yml'
9+
10+
jobs:
11+
django-tests:
12+
runs-on: ubuntu-latest
13+
name: Django Test Suite
14+
steps:
15+
- name: Checkout django-snowflake
16+
uses: actions/checkout@v2
17+
- name: Checkout Django
18+
uses: actions/checkout@v2
19+
with:
20+
repository: 'timgraham/django'
21+
ref: 'remove-query-quotes'
22+
path: 'django_repo'
23+
- name: Install system packages for Django's Python test dependencies
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install libmemcached-dev
27+
- name: Install Django and its Python test dependencies
28+
run: |
29+
cd django_repo/tests/
30+
pip3 install -e ..
31+
pip3 install -r requirements/py3.txt
32+
- name: install the django-snowflake backend
33+
run: pip3 install .
34+
- name: Copy the test settings file
35+
run: cp .github/workflows/snowflake_settings.py django_repo/tests/
36+
- name: Run the tests
37+
run: >
38+
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
39+
force_insert_update
40+
foreign_object
41+
forms_tests
42+
from_db_value
43+
generic_inline_admin
44+
generic_relations
45+
generic_relations_regress
46+
generic_views
47+
get_earliest_or_latest
48+
get_object_or_404
49+
get_or_create
50+
i18n
51+
inline_formsets
52+
inspectdb
53+
introspection
54+
invalid_models_tests
55+
known_related_objects
56+
lookup
57+
m2m_and_m2o
58+
m2m_intermediary
59+
m2m_multiple
60+
m2m_recursive
61+
m2m_regress
62+
m2m_signals
63+
m2m_through
64+
m2m_through_regress
65+
m2o_recursive
66+
managers_regress
67+
many_to_many
68+
many_to_one
69+
many_to_one_null
70+
max_lengths
71+
migrate_signals
72+
migrations
73+
migration_test_data_persistence
74+
modeladmin
75+
model_inheritance
76+
model_inheritance_regress
77+
model_meta
78+
model_options
79+
model_package
80+
model_regress
81+
env:
82+
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
83+
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
84+
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
85+
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}

.github/workflows/tests4.yml

+91
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: Tests IV
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.py'
7+
- '!setup.py'
8+
- '.github/workflows/tests1.yml'
9+
10+
jobs:
11+
django-tests:
12+
runs-on: ubuntu-latest
13+
name: Django Test Suite
14+
steps:
15+
- name: Checkout django-snowflake
16+
uses: actions/checkout@v2
17+
- name: Checkout Django
18+
uses: actions/checkout@v2
19+
with:
20+
repository: 'timgraham/django'
21+
ref: 'remove-query-quotes'
22+
path: 'django_repo'
23+
- name: Install system packages for Django's Python test dependencies
24+
run: |
25+
sudo apt-get update
26+
sudo apt-get install libmemcached-dev
27+
- name: Install Django and its Python test dependencies
28+
run: |
29+
cd django_repo/tests/
30+
pip3 install -e ..
31+
pip3 install -r requirements/py3.txt
32+
- name: install the django-snowflake backend
33+
run: pip3 install .
34+
- name: Copy the test settings file
35+
run: cp .github/workflows/snowflake_settings.py django_repo/tests/
36+
- name: Run the tests
37+
run: >
38+
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
39+
model_fields
40+
model_forms
41+
model_formsets
42+
model_formsets_regress
43+
mutually_referential
44+
nested_foreign_keys
45+
null_fk
46+
null_fk_ordering
47+
null_queries
48+
one_to_one
49+
ordering
50+
order_with_respect_to
51+
or_lookups
52+
pagination
53+
prefetch_related
54+
properties
55+
proxy_model_inheritance
56+
proxy_models
57+
queries
58+
queryset_pickle
59+
raw_query
60+
reserved_names
61+
reverse_lookup
62+
save_delete_hooks
63+
schema
64+
select_for_update
65+
select_related
66+
select_related_onetoone
67+
select_related_regress
68+
serializers
69+
servers
70+
signals
71+
sitemaps_tests
72+
sites_framework
73+
sites_tests
74+
string_lookup
75+
swappable_models
76+
syndication_tests
77+
test_client
78+
test_client_regress
79+
timezones
80+
transaction_hooks
81+
transactions
82+
unmanaged_models
83+
update
84+
update_only_fields
85+
validation
86+
view_tests
87+
env:
88+
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
89+
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
90+
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
91+
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}

0 commit comments

Comments
 (0)