File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed
Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -2,10 +2,10 @@ name: Tests
22on :
33 push :
44 branches :
5- - main
5+ - master
66 pull_request :
77 branches :
8- - main
8+ - master
99jobs :
1010 test :
1111 runs-on : ubuntu-latest
2222 - name : Set up Python
2323 uses : actions/setup-python@v5
2424 with :
25- python-version : ' 3.12 '
25+ python-version : ' 3.11 '
2626 - name : Install dependencies
2727 run : pip install -r requirements.txt
2828 - name : Run tests and collect coverage
Original file line number Diff line number Diff line change 1+ coverage == 7.5.1
2+ django == 5.1.2
13pillow == 10.3.0
4+ selenium == 4.24.0
Original file line number Diff line number Diff line change 33import os
44import sys
55
6- os .environ ['DJANGO_SETTINGS_MODULE' ] = 'publications.test_settings '
6+ os .environ ['DJANGO_SETTINGS_MODULE' ] = 'publications.settings.test '
77
88import django
99from django .conf import settings
@@ -16,7 +16,7 @@ def main():
1616 TestRunner = get_runner (settings )
1717 test_runner = TestRunner ()
1818
19- failures = test_runner .run_tests (['publications.settings. test' ])
19+ failures = test_runner .run_tests (['publications.test' ])
2020
2121 sys .exit (bool (failures ))
2222
You can’t perform that action at this time.
0 commit comments