readd settings for the github tests

This commit is contained in:
Andreas Zweili 2022-02-07 23:04:45 +01:00
parent be38613324
commit 62c93019c3
2 changed files with 16 additions and 1 deletions

View File

@ -26,7 +26,7 @@ jobs:
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
pytest -nauto --ds=network_inventory.settings.local --nomigrations
pytest -nauto --ds=network_inventory.settings.ram_test --nomigrations
publish:
# Ensure test job passes before pushing image.

View File

@ -0,0 +1,15 @@
from .base import *
# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = 'development_key'
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
CRISPY_FAIL_SILENTLY = not DEBUG
DATABASES = {
'default': {
'ENGINE': 'django.db.backends.sqlite3',
'NAME': ':memory:',
}
}