From 567fbef1688c4b27f84e26a23068d1d20fca319f Mon Sep 17 00:00:00 2001 From: Oluwanifemi Daramola <76186151+nifedara@users.noreply.github.com> Date: Tue, 30 Jul 2024 10:29:37 +0100 Subject: [PATCH] test(github-action): updates env variables --- .github/workflows/backend_build.yml | 17 +++++------------ 1 file changed, 5 insertions(+), 12 deletions(-) diff --git a/.github/workflows/backend_build.yml b/.github/workflows/backend_build.yml index 22a47605..48b5ae53 100644 --- a/.github/workflows/backend_build.yml +++ b/.github/workflows/backend_build.yml @@ -38,11 +38,6 @@ jobs: - name: Get my current working dir run: pwd - - name: Test env vars for python - env: - TESTING_TOKEN: ${{ secrets.TESTING_TOKEN }} - run: python -c "import os; print(os.environ['TESTING_TOKEN'])" - - name: Clone Ramp run: git clone https://github.com/kshitijrajsharma/ramp-code-fAIr.git ramp-code @@ -87,11 +82,11 @@ jobs: cd backend/ pip install -r requirements.txt - - name: Set environment variables - run: | - export DATABASE_URL=postgis://admin:password@localhost:5432/ai - export RAMP_HOME="/home/runner/work/fAIr/fAIr" - export TRAINING_WORKSPACE="/home/runner/work/fAIr/fAIr/backend/training" + - name: Creating env + env: + DATABASE_URL: postgis://admin:password@localhost:5432/ai + RAMP_HOME: "/home/runner/work/fAIr/fAIr" + TRAINING_WORKSPACE: "/home/runner/work/fAIr/fAIr/backend/training" - name: Run celery worker run: | @@ -127,8 +122,6 @@ jobs: export OSM_CLIENT_SECRET=$OSM_CLIENT_SECRET export OSM_SECRET_KEY=$OSM_SECRET_KEY - echo "TESTING_TOKEN starts with: ${TESTING_TOKEN:0:6}..." - python manage.py makemigrations python manage.py makemigrations core python manage.py makemigrations login