Skip to content

Commit

Permalink
CI&CD: pin opencv version
Browse files Browse the repository at this point in the history
  • Loading branch information
bigcat88 committed Feb 23, 2023
1 parent 0bac138 commit 78a42f8
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 24 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/analysis-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,8 +95,7 @@ jobs:
run: |
brew uninstall --force --ignore-dependencies imagemagick libheif
brew install --formula ./libheif/macos/libheif.rb
python3 -m pip install opencv-python coverage
python3 -m pip -v install ".[tests]"
python3 -m pip -v install ".[dev]"
- name: LibHeif info
run: python3 -c "import pillow_heif; print(pillow_heif.libheif_info())"
Expand Down Expand Up @@ -156,8 +155,8 @@ jobs:
- name: Install from source
run: |
python -m pip install opencv-python coverage pillow==8.4.0
python -m pip -v install ".[tests]"
python -m pip install pillow==8.4.0
python -m pip -v install ".[dev]"
- name: LibHeif info
run: python -c "import pillow_heif; print(pillow_heif.libheif_info())"
Expand Down
11 changes: 1 addition & 10 deletions .github/workflows/test-wheels-pi_heif.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ jobs:
{ "os": "debian", "ver": "11", "arch": "arm/v7" },
{ "os": "alpine", "ver": "3.15", "arch": "amd64" },
{ "os": "alpine", "ver": "3.15", "arch": "arm64" },
{ "os": "alpine", "ver": "3.15", "arch": "arm/v7" },
{ "os": "alpine", "ver": "3.16", "arch": "amd64" },
{ "os": "alpine", "ver": "3.16", "arch": "arm64" },
{ "os": "alpine", "ver": "3.16", "arch": "arm/v7" },
Expand Down Expand Up @@ -95,7 +94,7 @@ jobs:

- name: Preparations
run: |
python3 -m pip install pytest pillow numpy pympler defusedxml opencv-python
python3 -m pip install pytest pillow numpy pympler defusedxml
python3 -m pip install --only-binary=:all: pi-heif
- name: Test wheel
Expand Down Expand Up @@ -127,10 +126,6 @@ jobs:
python3 -m pip install pytest pillow numpy pympler defusedxml
python3 -m pip install --only-binary=:all: pi-heif
- name: Install OpenCV for CPython
if: startsWith(matrix.python-version, '3.')
run: python3 -m pip install opencv-python

- name: Test wheel
run: |
export TEST_DECODE_THREADS=0
Expand Down Expand Up @@ -162,10 +157,6 @@ jobs:
python3 -m pip install pytest pillow numpy pympler defusedxml
python3 -m pip install --only-binary=:all: pi-heif
- name: Install OpenCV for CPython
if: startsWith(matrix.python-version, '3.')
run: python3 -m pip install opencv-python

- name: Test wheel
run: |
python3 .github/transform_to-pi_heif.py
Expand Down
10 changes: 1 addition & 9 deletions .github/workflows/test-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ jobs:

- name: Preparations
run: |
python3 -m pip install pytest pillow numpy pympler defusedxml opencv-python
python3 -m pip install pytest pillow numpy pympler defusedxml
python3 -m pip install --only-binary=:all: pillow_heif
- name: Test wheel
Expand Down Expand Up @@ -127,10 +127,6 @@ jobs:
python3 -m pip install pytest pillow numpy pympler defusedxml
python3 -m pip install --only-binary=:all: pillow_heif
- name: Install OpenCV for CPython
if: startsWith(matrix.python-version, '3.')
run: python3 -m pip install opencv-python

- name: Test wheel
run: |
export TEST_DECODE_THREADS=0
Expand Down Expand Up @@ -161,10 +157,6 @@ jobs:
python3 -m pip install pytest pillow numpy pympler defusedxml
python3 -m pip install --only-binary=:all: pillow_heif
- name: Install OpenCV for CPython
if: startsWith(matrix.python-version, '3.')
run: python3 -m pip install opencv-python

- name: Test wheel
run: |
export PH_FULL_ACTION=1
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ dev =
packaging
numpy
pympler
opencv-python
opencv-python==4.7.0.68
pre-commit
pylint
coverage
Expand Down

0 comments on commit 78a42f8

Please sign in to comment.