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 adc2e46 commit d9a9ac2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/run-unit-tests_conda-forge.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d9a9ac2

Please sign in to comment.