Skip to content

Commit

Permalink
test(github-action): updates env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
nifedara committed Jul 30, 2024
1 parent 4c3a4ab commit 567fbef
Showing 1 changed file with 5 additions and 12 deletions.
17 changes: 5 additions & 12 deletions .github/workflows/backend_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 567fbef

Please sign in to comment.