From ee0c639357cc9a9a87c1d52fe86ba028297c216a Mon Sep 17 00:00:00 2001 From: Kshitij Raj Sharma <36752999+kshitijrajsharma@users.noreply.github.com> Date: Wed, 30 Aug 2023 08:52:21 +0545 Subject: [PATCH 1/4] Build backend branch --- .github/workflows/backend_build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/backend_build.yml b/.github/workflows/backend_build.yml index ff506399..688b34ea 100644 --- a/.github/workflows/backend_build.yml +++ b/.github/workflows/backend_build.yml @@ -3,6 +3,7 @@ on: push: branches: - master + - fix/build pull_request: branches: - master From c6b4a4b40d72c85bea8e469643a08d6ad85af42b Mon Sep 17 00:00:00 2001 From: Kshitij Raj Sharma <36752999+kshitijrajsharma@users.noreply.github.com> Date: Wed, 30 Aug 2023 08:54:21 +0545 Subject: [PATCH 2/4] check opencv version --- .github/workflows/backend_build.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/backend_build.yml b/.github/workflows/backend_build.yml index 688b34ea..744481f9 100644 --- a/.github/workflows/backend_build.yml +++ b/.github/workflows/backend_build.yml @@ -105,11 +105,16 @@ jobs: 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 + - name: Run tests env: TESTING_TOKEN: ${{ secrets.TESTING_TOKEN }} run: | cd backend/ + export TESTING_TOKEN=$TESTING_TOKEN python manage.py makemigrations From 6705159c81e7f374a7f686744701df5578a2e767 Mon Sep 17 00:00:00 2001 From: Kshitij Raj Sharma <36752999+kshitijrajsharma@users.noreply.github.com> Date: Wed, 30 Aug 2023 09:06:06 +0545 Subject: [PATCH 3/4] install opencv python headless --- .github/workflows/backend_build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/backend_build.yml b/.github/workflows/backend_build.yml index 744481f9..785fc586 100644 --- a/.github/workflows/backend_build.yml +++ b/.github/workflows/backend_build.yml @@ -108,6 +108,7 @@ jobs: - name : Check Opencv version run: | pip freeze | grep opencv + pip install opencv-python-headless==4.7.0.68 - name: Run tests env: From ac6aa45005c04e5be6eba13366fc45ebc139e740 Mon Sep 17 00:00:00 2001 From: kshitijrajsharma Date: Sat, 23 Sep 2023 11:57:44 +0545 Subject: [PATCH 4/4] Upgraded opencv --- backend/docker/ramp/docker-requirements.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend/docker/ramp/docker-requirements.txt b/backend/docker/ramp/docker-requirements.txt index 51f119b2..d8e0baae 100644 --- a/backend/docker/ramp/docker-requirements.txt +++ b/backend/docker/ramp/docker-requirements.txt @@ -40,7 +40,8 @@ munch==2.5.0 munkres==1.1.4 networkx numpy -opencv-python==4.5.5.64 +opencv-python<=4.5.5.64 +opencv-python-headless<=4.7.0.68 packaging==21.3 pandas partd==1.2.0