Skip to content

Commit

Permalink
update workflow & settings.py
Browse files Browse the repository at this point in the history
  • Loading branch information
DrCBeatz committed Dec 8, 2023
1 parent 8f07343 commit 1ba02f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/django_ci.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# django_ci.yml

name: Django CI

on:
Expand All @@ -12,6 +14,9 @@ jobs:
runs-on: ubuntu-latest
environment:
name: production
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
steps:
- uses: actions/checkout@v2

Expand All @@ -29,8 +34,5 @@ jobs:
run: python manage.py migrate

- name: Run Tests
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
run: |
pytest
2 changes: 2 additions & 0 deletions core/settings.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# core/settings.py

import os
from pathlib import Path
from decouple import config
Expand Down

0 comments on commit 1ba02f5

Please sign in to comment.