From d9a9ac2622e3bfadadc5cd1e59873dde4b5df704 Mon Sep 17 00:00:00 2001 From: Dugal Harris Date: Thu, 16 May 2024 21:05:12 +0200 Subject: [PATCH] add linux specific installs for opencv dependencies --- .github/workflows/run-unit-tests_conda-forge.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/run-unit-tests_conda-forge.yml b/.github/workflows/run-unit-tests_conda-forge.yml index 734cbeb..21ab870 100644 --- a/.github/workflows/run-unit-tests_conda-forge.yml +++ b/.github/workflows/run-unit-tests_conda-forge.yml @@ -32,6 +32,19 @@ jobs: activate-environment: orthority-test conda-solver: libmamba + - name: Install dependencies + run: | + conda info + conda install -c conda-forge rasterio opencv click tqdm pyyaml fsspec requests aiohttp pytest pytest-cov + conda list + + - name: Install OpenCV Linux dependencies + if: matrix.os == 'ubuntu-latest' + run: | + # Fix cv2 ImportError: 'libEGL.so.1: cannot open shared object file: No such file or directory' + sudo apt-get update + sudo apt-get install -y libegl1 libopengl0 + - name: Run unit tests run: | python -m pytest --cov=orthority --cov-report=term-missing --cov-report=xml:coverage.xml ./tests