Skip to content

Commit 0b9fccf

Browse files
committed
run all test apps on CI
1 parent 3bfeeb7 commit 0b9fccf

File tree

3 files changed

+272
-114
lines changed

3 files changed

+272
-114
lines changed

.github/workflows/test-python.yml

-114
This file was deleted.

.github/workflows/test-python1.yml

+130
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,130 @@
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
74+
fixtures_model_package
75+
fixtures_regress
76+
flatpages_tests
77+
forms_tests
78+
generic_inline_admin
79+
generic_views
80+
get_earliest_or_latest
81+
get_object_or_404
82+
get_or_create
83+
i18n
84+
indexes
85+
inline_formsets
86+
invalid_models_tests
87+
managers_regress
88+
managers_regress
89+
max_lengths
90+
messages_tests
91+
migrate_signals
92+
migration_test_data_persistence
93+
modeladmin
94+
model_formsets_regress
95+
model_indexes
96+
model_inheritance
97+
model_options
98+
model_package
99+
model_regress
100+
model_utils
101+
multiple_database
102+
order_with_respect_to
103+
pagination
104+
properties
105+
proxy_model_inheritance
106+
proxy_models
107+
queryset_pickle
108+
redirects_tests
109+
reserved_names
110+
reverse_lookup
111+
save_delete_hooks
112+
servers
113+
signals
114+
sitemaps_tests
115+
sites_framework
116+
sites_tests
117+
str
118+
string_lookup
119+
swappable_models
120+
syndication_tests
121+
test_client
122+
test_client_regress
123+
test_runner
124+
test_utils
125+
transactions
126+
unmanaged_models
127+
update_only_fields
128+
user_commands
129+
validation
130+
view_tests

0 commit comments

Comments
 (0)