Skip to content

Commit

Permalink
Added secrets in django.yml file
Browse files Browse the repository at this point in the history
  • Loading branch information
Fer-Bar committed Apr 15, 2024
1 parent 5fea46a commit fca2447
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,13 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: curl -sSL https://install.python-poetry.org | python -
- name: Set Environment Variables
env:
SECRET_KEY: ${{ secrets.SECRET_KEY }}
run: |
curl -sSL https://install.python-poetry.org | python -
echo "SECRET_KEY=${SECRET_KEY}" > .env
- name: Install Dependencies
run: |
poetry install
run: poetry install
- name: Run Tests
run: |
poetry run python manage.py test
run: poetry run python manage.py test

0 comments on commit fca2447

Please sign in to comment.