Skip to content

Commit 7d01038

Browse files
committed
Add more Django test apps to CI
1 parent fa2fa85 commit 7d01038

File tree

4 files changed

+267
-20
lines changed

4 files changed

+267
-20
lines changed

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

+10-20
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,26 +37,16 @@ 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
42-
annotations
43-
backends
44-
basic
45-
bulk_create
46-
dates
47-
datetimes
48-
db_functions
49-
expressions
50-
expressions_window
51-
field_defaults
52-
inspectdb
53-
introspection
54-
lookup
55-
migrations
56-
model_fields
57-
queries
58-
schema
59-
timezones
6050
env:
6151
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
6252
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}

.github/workflows/tests2.yml

+73
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
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@v4
17+
- name: Checkout Django
18+
uses: actions/checkout@v4
19+
with:
20+
repository: 'timgraham/django'
21+
ref: 'snowflake-5.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+
annotations
41+
auth_tests
42+
backends
43+
basic
44+
bulk_create
45+
cache
46+
check_framework
47+
constraints
48+
contenttypes_tests
49+
custom_columns
50+
custom_lookups
51+
custom_managers
52+
custom_methods
53+
custom_pk
54+
datatypes
55+
dates
56+
datetimes
57+
db_functions
58+
db_typecasts
59+
db_utils
60+
defer
61+
defer_regress
62+
delete
63+
delete_regress
64+
empty
65+
expressions
66+
expressions_case
67+
expressions_window
68+
extra_regress
69+
env:
70+
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
71+
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
72+
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
73+
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@v4
17+
- name: Checkout Django
18+
uses: actions/checkout@v4
19+
with:
20+
repository: 'timgraham/django'
21+
ref: 'snowflake-5.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@v4
17+
- name: Checkout Django
18+
uses: actions/checkout@v4
19+
with:
20+
repository: 'timgraham/django'
21+
ref: 'snowflake-5.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)