Skip to content

Commit e4a32c6

Browse files
committed
Install headless opencv only for linux
1 parent 2646069 commit e4a32c6

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

.github/workflows/test_pysteps.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,19 @@ jobs:
3333
with:
3434
python-version: ${{ matrix.python-version }}
3535

36-
- name: Install mamba and create environment
36+
- name: Install mamba and create environment for Linux
37+
if: matrix.os == 'ubuntu-latest'
38+
uses: mamba-org/setup-micromamba@v1
39+
with:
40+
environment-file: ci/ci_test_env.yml
41+
environment-name: test_environment
42+
generate-run-shell: false
43+
create-args: >-
44+
python=${{ matrix.python-version }}
45+
libopencv *=headless*
46+
47+
- name: Install mamba and create environment (not Linux)
48+
if: matrix.os != 'ubuntu-latest'
3749
uses: mamba-org/setup-micromamba@v1
3850
with:
3951
environment-file: ci/ci_test_env.yml

ci/ci_test_env.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ dependencies:
1515
- matplotlib
1616
- netCDF4
1717
- opencv
18-
- libopencv *=headless*
1918
- pillow
2019
- pyproj
2120
- scipy

0 commit comments

Comments
 (0)