Skip to content

Commit f554371

Browse files
committed
add tests 2 & 3
1 parent 4b6634c commit f554371

File tree

2 files changed

+145
-0
lines changed

2 files changed

+145
-0
lines changed

.github/workflows/tests2.yml

Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
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+
inline_formsets
40+
inspectdb
41+
introspection
42+
invalid_models_tests
43+
known_related_objects
44+
lookup
45+
m2m_and_m2o
46+
m2m_intermediary
47+
m2m_multiple
48+
m2m_recursive
49+
m2m_regress
50+
m2m_signals
51+
m2m_through
52+
m2m_through_regress
53+
m2o_recursive
54+
managers_regress
55+
many_to_many
56+
many_to_one
57+
many_to_one_null
58+
max_lengths
59+
migrate_signals
60+
migrations
61+
migration_test_data_persistence
62+
modeladmin
63+
model_fields
64+
model_forms
65+
model_formsets
66+
model_formsets_regress
67+
mutually_referential
68+
nested_foreign_keys
69+
null_fk
70+
null_fk_ordering
71+
null_queries
72+
one_to_one
73+
order_with_respect_to
74+
or_lookups
75+
pagination
76+
prefetch_related
77+
properties
78+
proxy_model_inheritance
79+
proxy_models
80+
env:
81+
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
82+
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
83+
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
84+
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}

.github/workflows/tests3.yml

Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
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+
queries
40+
queryset_pickle
41+
reserved_names
42+
reverse_lookup
43+
save_delete_hooks
44+
schema
45+
select_for_update
46+
select_related
47+
select_related_onetoone
48+
select_related_regress
49+
timezones
50+
transaction_hooks
51+
transactions
52+
unmanaged_models
53+
update
54+
update_only_fields
55+
validation
56+
view_tests
57+
env:
58+
SNOWFLAKE_ACCOUNT: ${{ secrets.SNOWFLAKE_ACCOUNT }}
59+
SNOWFLAKE_PASSWORD: ${{ secrets.SNOWFLAKE_PASSWORD }}
60+
SNOWFLAKE_USER: ${{ secrets.SNOWFLAKE_USER }}
61+
SNOWFLAKE_WAREHOUSE: ${{ secrets.SNOWFLAKE_WAREHOUSE }}

0 commit comments

Comments
 (0)