Skip to content

Commit

Permalink
refactor test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
kantajp committed Jun 16, 2023
1 parent 9ecbbd0 commit 9a40e0b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
name: Run All Looben Tests
on: [push]
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DEBUG: ${{ secrets.DEBUG }}
DATABASE_ENGINE: ${{ secrets.DATABASE_ENGINE }}
DATABASE_NAME: ${{ secrets.DATABASE_NAME }}
DATABASE_USER: ${{ secrets.DATABASE_USER }}
DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
DATABASE_HOST: ${{ secrets.DATABASE_HOST }}
DATABASE_PORT: ${{ secrets.DATABASE_PORT }}
jobs:
unittest:
name: Run all tests
Expand All @@ -21,15 +30,6 @@ jobs:
# echo $DATABASE_HOST
# echo $DATABASE_PORT
- name: Checkout repository
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
DEBUG: ${{ secrets.DEBUG }}
DATABASE_ENGINE: ${{ secrets.DATABASE_ENGINE }}
DATABASE_NAME: ${{ secrets.DATABASE_NAME }}
DATABASE_USER: ${{ secrets.DATABASE_USER }}
DATABASE_PASSWORD: ${{ secrets.DATABASE_PASSWORD }}
DATABASE_HOST: ${{ secrets.DATABASE_HOST }}
DATABASE_PORT: ${{ secrets.DATABASE_PORT }}
uses: actions/checkout@v2
- name: Excute tests
env:
Expand Down
4 changes: 2 additions & 2 deletions Looben/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,8 +99,8 @@
DATABASES = {
'default': {
'ENGINE': os.environ.get('DATABASE_ENGINE'),
'NAME': os.environ.get('DATABASE_ENGINE'),
'USER': os.environ.get('DATABASE_NAME'),
'NAME': os.environ.get('DATABASE_NAME'),
'USER': os.environ.get('DATABASE_USER'),
'PASSWORD': os.environ.get('DATABASE_PASSWORD'),
'HOST': os.environ.get('DATABASE_HOST'),
'PORT': os.environ.get('DATABASE_PORT'),
Expand Down

0 comments on commit 9a40e0b

Please sign in to comment.