Skip to content

Commit

Permalink
test(test-backend-build): adds run project tests in Github action wor…
Browse files Browse the repository at this point in the history
…kflow

to run automatic tests on PR
  • Loading branch information
nifedara committed Jul 16, 2024
1 parent 47f59fe commit 0aee788
Showing 1 changed file with 9 additions and 15 deletions.
24 changes: 9 additions & 15 deletions .github/workflows/backend_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,15 @@ 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 All @@ -85,7 +90,8 @@ jobs:
- name: Install Dependencies
run: |
cd backend/
pip install -r requirements.txt
pip install pdm
pdm install
- name: Creating env
run: |
Expand All @@ -104,12 +110,6 @@ 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,11 +121,5 @@ jobs:
run: |
cd backend/
export TESTING_TOKEN=$TESTING_TOKEN
python manage.py makemigrations
python manage.py makemigrations core
python manage.py makemigrations login
python manage.py migrate
python manage.py migrate login
python manage.py migrate core
coverage run manage.py test tests
coverage report

0 comments on commit 0aee788

Please sign in to comment.