From afe9dc52bdc45e9a6d6e65833462e464eebd5938 Mon Sep 17 00:00:00 2001 From: Elijah Date: Sun, 14 Jan 2024 17:23:49 +0100 Subject: [PATCH] Added random secret_key generation for test running --- .gitea/workflows/ci-pipeline.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.gitea/workflows/ci-pipeline.yaml b/.gitea/workflows/ci-pipeline.yaml index bb38125..9e4eea2 100644 --- a/.gitea/workflows/ci-pipeline.yaml +++ b/.gitea/workflows/ci-pipeline.yaml @@ -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