Skip to content

Commit

Permalink
test(fix-backend-build): fixes install dependecies failing
Browse files Browse the repository at this point in the history
  • Loading branch information
nifedara committed Jul 16, 2024
1 parent 0aee788 commit f86dc4d
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/backend_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,15 +55,10 @@ jobs:
- name: Unzip and Move Basemodel
run: unzip checkpoint.tf.zip -d ramp-code/ramp

- name: Install numpy
run: |
pip install numpy
- name: Install gdal
run: |
sudo apt-get update && sudo apt-get -y install gdal-bin libgdal-dev python3-gdal && sudo apt-get -y autoremove && sudo apt-get clean
pip install GDAL==$(gdal-config --version)
- name: Install ramp dependecies
run: |
cd ramp-code && cd colab && make install
Expand Down Expand Up @@ -110,6 +105,12 @@ jobs:
cd backend/
celery -A aiproject --broker=redis://localhost:6379/ flower &
- name: Fix gdal array
run: |
pip uninstall -y gdal
pip install numpy
pip install GDAL==$(gdal-config --version) --global-option=build_ext --global-option="-I/usr/include/gdal"
- name: Check Opencv version
run: |
pip freeze | grep opencv
Expand All @@ -121,5 +122,7 @@ jobs:
run: |
cd backend/
export TESTING_TOKEN=$TESTING_TOKEN
coverage run manage.py test tests
coverage report

0 comments on commit f86dc4d

Please sign in to comment.