Skip to content

Commit

Permalink
test through manage.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PetrDlouhy committed Nov 20, 2021
1 parent e8321ce commit dd9d0bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
if [ "$matrix.DB_ENGINE" = 'mysql' ]; then
mysql_tzinfo_to_sql /usr/share/zoneinfo | mysql -u db_user -p mysql mysql
fi
coverage run setup.py test
coverage run manage.py test
coverage xml && codecov
env:
POSTGRES_HOST: localhost
Expand Down
10 changes: 10 additions & 0 deletions manage.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env python
import os
import sys

if __name__ == "__main__":
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "demoproject.test_settings")

from django.core.management import execute_from_command_line

execute_from_command_line(sys.argv)

0 comments on commit dd9d0bd

Please sign in to comment.