Skip to content

Commit

Permalink
change working directory for pipenv install in github action
Browse files Browse the repository at this point in the history
  • Loading branch information
Saurav-Shrivastav committed Jul 15, 2021
1 parent adf73ea commit 1662df7
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 24 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ jobs:
${{ runner.os }}-pipenv-v2-
- name: Install dependencies
working-directory: ./jabme
env:
PIPENV_NOSPIN: "true"
WORKON_HOME: ~/.local/share/virtualenvs
Expand All @@ -47,11 +48,13 @@ jobs:
pipenv install --deploy --dev
- name: Execute the tests
working-directory: ./jabme
run: |
pipenv run python jabme/manage.py test
pipenv run python manage.py test
env:
DJANGO_SETTINGS_MODULE: app.settings.prod

- name: QA Tests
working-directory: ./jabme
run: |
pipenv run pre-commit run -a
51 changes: 28 additions & 23 deletions jabme/app/settings/prod.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,28 +15,33 @@


# Logging Configuration
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"root": {"level": "INFO", "handlers": ["file"]},
"handlers": {
"file": {
"level": "INFO",
"class": "logging.FileHandler",
"filename": "/home/app/web/logs/django.log",
"formatter": "app",
if not os.environ.get("GITHUB_WORKFLOW"):
LOGGING = {
"version": 1,
"disable_existing_loggers": False,
"root": {"level": "INFO", "handlers": ["file"]},
"handlers": {
"file": {
"level": "INFO",
"class": "logging.FileHandler",
"filename": "/home/app/web/logs/django.log",
"formatter": "app",
},
},
},
"loggers": {
"django": {"handlers": ["file"], "level": "INFO", "propagate": True},
},
"formatters": {
"app": {
"format": (
u"%(asctime)s [%(levelname)-8s] "
"(%(module)s.%(funcName)s) %(message)s"
),
"datefmt": "%Y-%m-%d %H:%M:%S",
"loggers": {
"django": {
"handlers": ["file"],
"level": "INFO",
"propagate": True,
},
},
},
}
"formatters": {
"app": {
"format": (
u"%(asctime)s [%(levelname)-8s] "
"(%(module)s.%(funcName)s) %(message)s"
),
"datefmt": "%Y-%m-%d %H:%M:%S",
},
},
}

0 comments on commit 1662df7

Please sign in to comment.