Skip to content

Commit 824fd0a

Browse files
committed
run all test apps on CI
1 parent b524c2f commit 824fd0a

File tree

3 files changed

+262
-1
lines changed

3 files changed

+262
-1
lines changed

.github/workflows/test-python.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ jobs:
7171
expressions_case
7272
defer
7373
defer_regress
74+
fixtures
75+
fixtures_regress
7476
force_insert_update
7577
from_db_value
7678
generic_relations
@@ -93,7 +95,6 @@ jobs:
9395
migrations
9496
model_fields
9597
model_forms
96-
model_formsets
9798
model_inheritance_regress
9899
mutually_referential
99100
nested_foreign_keys

.github/workflows/test-python1.yml

Lines changed: 129 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,129 @@
1+
name: Python Tests II
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
concurrency:
8+
group: tests1-${{ github.ref }}
9+
cancel-in-progress: true
10+
11+
defaults:
12+
run:
13+
shell: bash -eux {0}
14+
15+
jobs:
16+
17+
build:
18+
name: Django Test Suite
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout django-mongodb
22+
uses: actions/checkout@v4
23+
- name: install the django-mongodb backend
24+
run: |
25+
pip3 install --upgrade pip
26+
pip3 install -e .
27+
- name: Checkout Django
28+
uses: actions/checkout@v4
29+
with:
30+
repository: 'mongodb-forks/django'
31+
ref: 'mongodb-5.0.x'
32+
path: 'django_repo'
33+
- name: Install system packages for Django's Python test dependencies
34+
run: |
35+
sudo apt-get update
36+
sudo apt-get install libmemcached-dev
37+
- name: Install Django and its Python test dependencies
38+
run: |
39+
cd django_repo/tests/
40+
pip3 install -e ..
41+
pip3 install -r requirements/py3.txt
42+
- name: Copy the test settings file
43+
run: cp .github/workflows/mongodb_settings.py django_repo/tests/
44+
- name: Start MongoDB
45+
uses: supercharge/[email protected]
46+
with:
47+
mongodb-version: 5.0
48+
- name: Run tests
49+
run: >
50+
python3 django_repo/tests/runtests.py --settings mongodb_settings -v 2
51+
admin_checks
52+
admin_custom_urls
53+
admin_docs
54+
admin_inlines
55+
admin_ordering
56+
admin_scripts
57+
admin_utils
58+
admin_views
59+
admin_widgets
60+
apps
61+
async
62+
check_framework
63+
constraints
64+
contenttypes_tests
65+
context_processors
66+
custom_columns
67+
custom_managers
68+
datatypes
69+
empty_models
70+
field_defaults
71+
file_storage
72+
file_uploads
73+
fixtures_model_package
74+
flatpages_tests
75+
forms_tests
76+
generic_inline_admin
77+
generic_views
78+
get_earliest_or_latest
79+
get_object_or_404
80+
get_or_create
81+
i18n
82+
indexes
83+
inline_formsets
84+
invalid_models_tests
85+
managers_regress
86+
managers_regress
87+
max_lengths
88+
messages_tests
89+
migrate_signals
90+
migration_test_data_persistence
91+
modeladmin
92+
model_formsets
93+
model_formsets_regress
94+
model_indexes
95+
model_inheritance
96+
model_options
97+
model_package
98+
model_regress
99+
model_utils
100+
multiple_database
101+
order_with_respect_to
102+
pagination
103+
properties
104+
proxy_model_inheritance
105+
proxy_models
106+
queryset_pickle
107+
redirects_tests
108+
reserved_names
109+
reverse_lookup
110+
save_delete_hooks
111+
servers
112+
signals
113+
sitemaps_tests
114+
sites_framework
115+
sites_tests
116+
str
117+
string_lookup
118+
swappable_models
119+
syndication_tests
120+
test_client
121+
test_client_regress
122+
test_runner
123+
test_utils
124+
transactions
125+
unmanaged_models
126+
update_only_fields
127+
user_commands
128+
validation
129+
view_tests

0 commit comments

Comments
 (0)