File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 25
25
else :
26
26
test_apps .extend (["gis_tests" , "gis_tests_" ])
27
27
28
+ settings_module = os .environ .get ("DJANGO_SETTINGS_MODULE" , "mongodb_settings" )
28
29
runtests = pathlib .Path (__file__ ).parent .resolve () / "runtests.py"
29
- run_tests_cmd = f"python3 { runtests } %s --settings mongodb_settings -v 2"
30
+ run_tests_cmd = f"python3 { runtests } %s --settings { settings_module } -v 2"
30
31
31
32
shouldFail = False
32
33
for app_name in test_apps :
Original file line number Diff line number Diff line change 28
28
- name : install django-mongodb-backend
29
29
run : |
30
30
pip3 install --upgrade pip
31
- pip3 install -e .
31
+ pip3 install -e .[encryption]
32
32
- name : Checkout Django
33
33
uses : actions/checkout@v5
34
34
with :
45
45
cd django_repo/tests/
46
46
pip3 install -e ..
47
47
pip3 install -r requirements/py3.txt
48
- - name : Copy the test settings file
49
- run : cp .github/workflows/mongodb_settings .py django_repo/tests/
48
+ - name : Copy the test settings files
49
+ run : cp .github/workflows/*_settings .py django_repo/tests/
50
50
- name : Copy the test runner file
51
51
run : cp .github/workflows/runtests.py django_repo/tests/runtests_.py
52
52
- name : Start local Atlas
56
56
run : python3 django_repo/tests/runtests_.py
57
57
permissions :
58
58
contents : read
59
+ env :
60
+ DJANGO_SETTINGS_MODULE : " encrypted_settings"
You can’t perform that action at this time.
0 commit comments