Skip to content

Commit

Permalink
test(github-action): updates env setting
Browse files Browse the repository at this point in the history
  • Loading branch information
nifedara committed Jul 26, 2024
1 parent 8110271 commit 4c3a4ab
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions .github/workflows/backend_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,8 @@ jobs:
cd backend/
pip install -r requirements.txt
- name: Creating env
- name: Set environment variables
run: |
cd backend/
mv sample_env .env
sed -i 's/TESTING_TOKEN = .*/TESTING_TOKEN=${{ secrets.TESTING_TOKEN }}/' .env
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"
Expand Down Expand Up @@ -125,8 +122,13 @@ jobs:
run: |
cd backend/
export TESTING_TOKEN=$TESTING_TOKEN
export OSM_CLIENT_ID=$OSM_CLIENT_ID
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 4c3a4ab

Please sign in to comment.