Skip to content

Commit

Permalink
add linux specific installs for opencv dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dugalh committed May 16, 2024
1 parent b1c3995 commit adc2e46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 16 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/install-test-conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,12 @@ jobs:
conda install orthority>=0.4.0
conda list
- name: Install OpenCV Linux dependencies
if: matrix.os == 'ubuntu-latest'
run: |
sudo apt-get update
sudo apt-get install -y libegl1 libopengl0
- name: Test CLI
timeout-minutes: 5
run: |
Expand Down
16 changes: 0 additions & 16 deletions .github/workflows/run-unit-tests_conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,22 +32,6 @@ jobs:
activate-environment: orthority-test
conda-solver: libmamba

- name: Install dependencies
# Note that conda-forge OpenCV 4.9 package has *GL dependencies that are not satisfied by
# GitHub's Ubuntu image, so 'opencv-python-headless' is installed with pip below.
run: |
conda info
conda install -c conda-forge rasterio click tqdm pyyaml fsspec requests aiohttp pytest pytest-cov
pip install opencv-python-headless
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

0 comments on commit adc2e46

Please sign in to comment.