Skip to content

Commit 6593abf

Browse files
committed
Add more Django test apps to CI
1 parent 7913279 commit 6593abf

File tree

5 files changed

+355
-18
lines changed

5 files changed

+355
-18
lines changed

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

+10-18
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
name: Tests
1+
name: Tests I
22

33
on:
44
pull_request:
55
paths:
66
- '**.py'
77
- '!setup.py'
8-
- '.github/workflows/tests.yml'
8+
- '.github/workflows/tests1.yml'
99

1010
jobs:
1111
django-tests:
@@ -37,25 +37,17 @@ jobs:
3737
- name: Run the tests
3838
run: >
3939
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
40+
admin_changelist
41+
admin_custom_urls
42+
admin_docs
43+
admin_filters
44+
admin_inlines
45+
admin_ordering
46+
admin_utils
47+
admin_views
4048
aggregation
4149
aggregation_regress
4250
annotations
43-
backends
44-
basic
45-
bulk_create
46-
dates
47-
datetimes
48-
db_functions
49-
expressions
50-
expressions_window
51-
inspectdb
52-
introspection
53-
lookup
54-
migrations
55-
model_fields
56-
queries
57-
schema
58-
timezones
5951
env:
6052
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
6153
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}

.github/workflows/tests2.yml

+72
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
name: Tests II
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.py'
7+
- '!setup.py'
8+
- '.github/workflows/tests2.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@v3
17+
- name: Checkout Django
18+
uses: actions/checkout@v3
19+
with:
20+
repository: 'timgraham/django'
21+
ref: 'snowflake-4.1.x'
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+
pip3 install -U pip
30+
cd django_repo/tests/
31+
pip3 install -e ..
32+
pip3 install -r requirements/py3.txt
33+
- name: install the django-snowflake backend
34+
run: pip3 install .
35+
- name: Copy the test settings file
36+
run: cp .github/workflows/snowflake_settings.py django_repo/tests/
37+
- name: Run the tests
38+
run: >
39+
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
40+
auth_tests
41+
backends
42+
basic
43+
bulk_create
44+
cache
45+
check_framework
46+
constraints
47+
contenttypes_tests
48+
custom_columns
49+
custom_lookups
50+
custom_managers
51+
custom_methods
52+
custom_pk
53+
datatypes
54+
dates
55+
datetimes
56+
db_functions
57+
db_typecasts
58+
db_utils
59+
defer
60+
defer_regress
61+
delete
62+
delete_regress
63+
empty
64+
expressions
65+
expressions_case
66+
expressions_window
67+
extra_regress
68+
env:
69+
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
70+
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
71+
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
72+
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}

.github/workflows/tests3.yml

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Tests III
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.py'
7+
- '!setup.py'
8+
- '.github/workflows/tests3.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@v3
17+
- name: Checkout Django
18+
uses: actions/checkout@v3
19+
with:
20+
repository: 'timgraham/django'
21+
ref: 'snowflake-4.1.x'
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+
pip3 install -U pip
30+
cd django_repo/tests/
31+
pip3 install -e ..
32+
pip3 install -r requirements/py3.txt
33+
- name: install the django-snowflake backend
34+
run: pip3 install .
35+
- name: Copy the test settings file
36+
run: cp .github/workflows/snowflake_settings.py django_repo/tests/
37+
- name: Run the tests
38+
run: >
39+
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
40+
field_defaults
41+
field_subclassing
42+
file_storage
43+
file_uploads
44+
filtered_relation
45+
force_insert_update
46+
foreign_object
47+
forms_tests
48+
from_db_value
49+
generic_inline_admin
50+
generic_relations
51+
generic_relations_regress
52+
generic_views
53+
get_earliest_or_latest
54+
get_object_or_404
55+
get_or_create
56+
i18n
57+
inline_formsets
58+
inspectdb
59+
introspection
60+
invalid_models_tests
61+
known_related_objects
62+
lookup
63+
m2m_and_m2o
64+
m2m_intermediary
65+
m2m_multiple
66+
m2m_recursive
67+
m2m_regress
68+
m2m_signals
69+
m2m_through
70+
m2m_through_regress
71+
m2o_recursive
72+
managers_regress
73+
many_to_many
74+
many_to_one
75+
many_to_one_null
76+
max_lengths
77+
migrate_signals
78+
migrations
79+
migration_test_data_persistence
80+
modeladmin
81+
model_inheritance
82+
model_inheritance_regress
83+
model_meta
84+
model_options
85+
model_package
86+
model_regress
87+
model_fields
88+
env:
89+
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
90+
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
91+
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
92+
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}

.github/workflows/tests4.yml

+92
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,92 @@
1+
name: Tests IV
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- '**.py'
7+
- '!setup.py'
8+
- '.github/workflows/tests4.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@v3
17+
- name: Checkout Django
18+
uses: actions/checkout@v3
19+
with:
20+
repository: 'timgraham/django'
21+
ref: 'snowflake-4.1.x'
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+
pip3 install -U pip
30+
cd django_repo/tests/
31+
pip3 install -e ..
32+
pip3 install -r requirements/py3.txt
33+
- name: install the django-snowflake backend
34+
run: pip3 install .
35+
- name: Copy the test settings file
36+
run: cp .github/workflows/snowflake_settings.py django_repo/tests/
37+
- name: Run the tests
38+
run: >
39+
python3 django_repo/tests/runtests.py --settings snowflake_settings -v 2
40+
model_forms
41+
model_formsets
42+
model_formsets_regress
43+
multiple_database
44+
mutually_referential
45+
nested_foreign_keys
46+
null_fk
47+
null_fk_ordering
48+
null_queries
49+
one_to_one
50+
ordering
51+
order_with_respect_to
52+
or_lookups
53+
pagination
54+
prefetch_related
55+
properties
56+
proxy_model_inheritance
57+
proxy_models
58+
queries
59+
queryset_pickle
60+
raw_query
61+
reserved_names
62+
reverse_lookup
63+
save_delete_hooks
64+
schema
65+
select_for_update
66+
select_related
67+
select_related_onetoone
68+
select_related_regress
69+
serializers
70+
servers
71+
signals
72+
sitemaps_tests
73+
sites_framework
74+
sites_tests
75+
string_lookup
76+
swappable_models
77+
syndication_tests
78+
test_client
79+
test_client_regress
80+
timezones
81+
transaction_hooks
82+
transactions
83+
unmanaged_models
84+
update
85+
update_only_fields
86+
validation
87+
view_tests
88+
env:
89+
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
90+
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
91+
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
92+
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}

0 commit comments

Comments
 (0)