Skip to content

Commit

Permalink
Fix env variables on github workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
JohannesSetiawan committed Feb 6, 2024
1 parent 14cd06b commit 00effa5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/django-build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,15 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Set Up Environment Variables
run: |
echo "DB_HOST=${{ secrets.DB_HOST }}" >> .env
echo "DJANGO_SECRET_KEY=${{ secrets.DJANGO_SECRET_KEY }}" >> .env
echo "DB_NAME=${{ secrets.DB_NAME }}" >> .env
echo "DB_USER=${{ secrets.DB_USER }}" >> .env
echo "DB_PASS=${{ secrets.DB_PASS }}" >> .env
- name: Run Tests
run: |
python manage.py test
Expand Down

0 comments on commit 00effa5

Please sign in to comment.