Skip to content

Commit b1c3995

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

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,13 @@ jobs:
4141
pip install opencv-python-headless
4242
conda list
4343
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+
4451
- name: Run unit tests
4552
run: |
4653
python -m pytest --cov=orthority --cov-report=term-missing --cov-report=xml:coverage.xml ./tests

0 commit comments

Comments
 (0)