From fde3a55586a51ba7a344fa07ae0a41c530e6cb0e Mon Sep 17 00:00:00 2001 From: Elijah Date: Sun, 14 Jan 2024 17:33:35 +0100 Subject: [PATCH] Test job env-var setting feature --- .gitea/workflows/ci-pipeline.yaml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.gitea/workflows/ci-pipeline.yaml b/.gitea/workflows/ci-pipeline.yaml index c57e972..e014125 100644 --- a/.gitea/workflows/ci-pipeline.yaml +++ b/.gitea/workflows/ci-pipeline.yaml @@ -8,10 +8,13 @@ on: - testing-pipeline jobs: - build: + test: runs-on: ubuntu-22.04 + env: + SECRET_KEY: "t3st_dummy_s3cr3t_k3y" + steps: - uses: actions/checkout@v4 @@ -39,12 +42,6 @@ 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}" - - name: Run tests run: | source venv/bin/activate