Skip to content

Commit

Permalink
Update django.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
jwjacobson authored Mar 24, 2024
1 parent 5299d78 commit 134ed42
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,15 @@ on:
branches: [ "main" ]
pull_request:
branches: [ "main" ]


env:
ADMIN_USER_ID: ${{ secrets.ADMIN_USER_ID }}
ALLOWED_HOSTS: ${{ secrets.ALLOWED_HOSTS }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
DEBUG: ${{ secrets.DEBUG }}
DEFAULT_FROM_EMAIL: ${{ secrets.DEFAULT_FROM_EMAIL }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}

jobs:
build:
Expand All @@ -28,15 +35,7 @@ jobs:
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
env:
ADMIN_USER_ID: ${{ secrets.ADMIN_USER_ID }}
ALLOWED_HOSTS: ${{ secrets.ALLOWED_HOSTS }}
DATABASE_URL: ${{ secrets.DATABASE_URL }}
DEBUG: ${{ secrets.DEBUG }}
DEFAULT_FROM_EMAIL: ${{ secrets.DEFAULT_FROM_EMAIL }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
SENDGRID_API_KEY: ${{ secrets.SENDGRID_API_KEY }}
SENTRY_DSN: ${{ secrets.SENTRY_DSN }}


run: |
echo "Checking if DATABASE_URL is set"
Expand Down

0 comments on commit 134ed42

Please sign in to comment.