Skip to content

Commit

Permalink
update pipeline to use coverage.py and new settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Paula Kammler committed Dec 6, 2023
1 parent 13f44c4 commit aff25fd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,6 @@ jobs:
- name: Run Tests
run: |
python manage.py test
coverage run --source='.' manage.py test --settings settings.ci
coverage report
coverage xml
12 changes: 12 additions & 0 deletions treexpert/settings/ci.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
from .base import *

DATABASES = {
"default": {
"ENGINE": "django.db.backends.postgresql",
"NAME": "ci",
"USER": "postgres",
"PASSWORD": "postgres",
"HOST": "postgres",
"PORT": "5432",
},
}

0 comments on commit aff25fd

Please sign in to comment.