Skip to content

add linux specific installs for opencv dependencies #56

add linux specific installs for opencv dependencies

add linux specific installs for opencv dependencies #56

name: Tests (conda-forge)
on:
pull_request:
branches: [main]
workflow_dispatch:
schedule:
- cron: '0 2 * * 1' # run weekly
jobs:
test:
runs-on: ${{ matrix.os }}
defaults:
run:
shell: bash -el {0}
strategy:
fail-fast: false
matrix:
os: [ macos-latest, ubuntu-latest, windows-latest ]
python-version: ['3.9', '3.11', '3.12']
steps:
- name: Check out repository
uses: actions/checkout@v4
- name: Set up conda
uses: conda-incubator/setup-miniconda@v3
with:
python-version: ${{ matrix.python-version }}
channels: conda-forge
channel-priority: strict
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

Check failure on line 40 in .github/workflows/run-unit-tests_conda-forge.yml

View workflow run for this annotation

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

Invalid workflow file

You have an error in your yaml syntax on line 40
- 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