Skip to content

Commit d9a9ac2

Browse files
committed
add linux specific installs for opencv dependencies
1 parent adc2e46 commit d9a9ac2

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

.github/workflows/run-unit-tests_conda-forge.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,19 @@ jobs:
3232
activate-environment: orthority-test
3333
conda-solver: libmamba
3434

35+
- name: Install dependencies
36+
run: |
37+
conda info
38+
conda install -c conda-forge rasterio opencv click tqdm pyyaml fsspec requests aiohttp pytest pytest-cov
39+
conda list
40+
41+
- name: Install OpenCV Linux dependencies
42+
if: matrix.os == 'ubuntu-latest'
43+
run: |
44+
# Fix cv2 ImportError: 'libEGL.so.1: cannot open shared object file: No such file or directory'
45+
sudo apt-get update
46+
sudo apt-get install -y libegl1 libopengl0
47+
3548
- name: Run unit tests
3649
run: |
3750
python -m pytest --cov=orthority --cov-report=term-missing --cov-report=xml:coverage.xml ./tests

0 commit comments

Comments
 (0)