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 2525else :
2626 test_apps .extend (["gis_tests" , "gis_tests_" ])
2727
28+ settings_module = os .environ .get ("DJANGO_SETTINGS_MODULE" , "mongodb_settings" )
2829runtests = 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"
3031
3132shouldFail = False
3233for app_name in test_apps :
Original file line number Diff line number Diff line change 2828 - name : install django-mongodb-backend
2929 run : |
3030 pip3 install --upgrade pip
31- pip3 install -e .
31+ pip3 install -e .[encryption]
3232 - name : Checkout Django
3333 uses : actions/checkout@v5
3434 with :
4545 cd django_repo/tests/
4646 pip3 install -e ..
4747 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/
5050 - name : Copy the test runner file
5151 run : cp .github/workflows/runtests.py django_repo/tests/runtests_.py
5252 - name : Start local Atlas
5656 run : python3 django_repo/tests/runtests_.py
5757 permissions :
5858 contents : read
59+ env :
60+ DJANGO_SETTINGS_MODULE : " encrypted_settings"
You can’t perform that action at this time.
0 commit comments