Replaced travis with GitHub action workflow. #142

This commit is contained in:
Fabio Caccamo
2021-12-07 10:43:46 +01:00
parent 294f8520ab
commit 70ed000f08
7 changed files with 70 additions and 13 deletions
+6
View File
@@ -89,6 +89,12 @@ database_config = {
}
}
github_workflow = os.environ.get('GITHUB_WORKFLOW')
if github_workflow:
database_config['postgres']['NAME'] = 'postgres'
database_config['postgres']['HOST'] = '127.0.0.1'
database_config['postgres']['PORT'] = '5432'
DATABASES = {
'default': database_config.get(database_engine),
}