From f2adb4e59f6c21cca3d8b51a90d13133aabaeb25 Mon Sep 17 00:00:00 2001 From: Renato Durrer Date: Thu, 4 Apr 2024 16:39:25 +0200 Subject: [PATCH] use opencv version that does not require additional non python dependencies. --- .github/workflows/pipeline_run.yml | 4 ++-- environment-dev.yml | 2 +- environment-prod.yml | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/pipeline_run.yml b/.github/workflows/pipeline_run.yml index 85043b85..787dd1fd 100644 --- a/.github/workflows/pipeline_run.yml +++ b/.github/workflows/pipeline_run.yml @@ -13,7 +13,6 @@ jobs: - name: Create Environment and run pipeline shell: bash run: | - sudo apt-get update && sudo apt-get install ffmpeg libsm6 libxext6 -y wget -O Miniforge3.sh "https://github.com/conda-forge/miniforge/releases/latest/download/Miniforge3-$(uname)-$(uname -m).sh" bash Miniforge3.sh -b -p "${HOME}/conda" source "${HOME}/conda/etc/profile.d/conda.sh" @@ -21,4 +20,5 @@ jobs: source "${HOME}/.bash_profile" conda env create -f environment-prod.yml conda activate boreholes-prod - sudo boreholes-extract-layers -l -i example/example_borehole_profile.pdf -o example/ -p example/predictions.json \ No newline at end of file + echo "Running pipeline" + boreholes-extract-layers -l -i example/example_borehole_profile.pdf -o example/ -p example/predictions.json \ No newline at end of file diff --git a/environment-dev.yml b/environment-dev.yml index 2f8c1a80..888680f3 100644 --- a/environment-dev.yml +++ b/environment-dev.yml @@ -8,7 +8,7 @@ dependencies: - pandas - levenshtein - pathlib==1.0.1 - - opencv==4.9.0 + - opencv-python-headless==4.9.0.80 - python-dotenv==1.0.1 - click==8.1.7 - PyYAML==6.0.1 diff --git a/environment-prod.yml b/environment-prod.yml index 20e5086b..660703e3 100644 --- a/environment-prod.yml +++ b/environment-prod.yml @@ -7,7 +7,7 @@ dependencies: - pandas - levenshtein - pathlib==1.0.1 - - opencv==4.9.0 + - opencv-python-headless==4.9.0.80 - python-dotenv==1.0.1 - click==8.1.7 - PyYAML==6.0.1