Added random secret_key generation for test running
This commit is contained in:
parent
eab0529850
commit
afe9dc52bd
|
@ -39,6 +39,12 @@ jobs:
|
||||||
pip install --upgrade pip
|
pip install --upgrade pip
|
||||||
pip install -r requirements.txt
|
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
|
- name: Run tests
|
||||||
run: |
|
run: |
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
|
|
Loading…
Reference in New Issue