Added random secret_key generation for test running

This commit is contained in:
Elijah 2024-01-14 17:23:49 +01:00
parent eab0529850
commit afe9dc52bd
1 changed files with 6 additions and 0 deletions

View File

@ -39,6 +39,12 @@ jobs:
pip install --upgrade pip
pip install -r requirements.txt
- name: Set random secret key
run: |
source venv/bin/activate
SECRET_KEY=$(python3 -c 'from django.core.management.utils import get_random_secret_key; print(get_random_secret_key())')
echo $SECRET_KEY > .env
- name: Run tests
run: |
source venv/bin/activate