Skip to content

Commit adc2e46

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

File tree

2 files changed

+6
-16
lines changed

2 files changed

+6
-16
lines changed

.github/workflows/install-test-conda-forge.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ jobs:
3333
conda install orthority>=0.4.0
3434
conda list
3535
36+
- name: Install OpenCV Linux dependencies
37+
if: matrix.os == 'ubuntu-latest'
38+
run: |
39+
sudo apt-get update
40+
sudo apt-get install -y libegl1 libopengl0
41+
3642
- name: Test CLI
3743
timeout-minutes: 5
3844
run: |

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

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

35-
- name: Install dependencies
36-
# Note that conda-forge OpenCV 4.9 package has *GL dependencies that are not satisfied by
37-
# GitHub's Ubuntu image, so 'opencv-python-headless' is installed with pip below.
38-
run: |
39-
conda info
40-
conda install -c conda-forge rasterio click tqdm pyyaml fsspec requests aiohttp pytest pytest-cov
41-
pip install opencv-python-headless
42-
conda list
43-
44-
- name: Install OpenCV Linux dependencies
45-
if: matrix.os == 'ubuntu-latest'
46-
run: |
47-
# Fix cv2 ImportError: 'libEGL.so.1: cannot open shared object file: No such file or directory'
48-
sudo apt-get update
49-
sudo apt-get install -y libegl1 libopengl0
50-
5135
- name: Run unit tests
5236
run: |
5337
python -m pytest --cov=orthority --cov-report=term-missing --cov-report=xml:coverage.xml ./tests

0 commit comments

Comments
 (0)