simplify more

cv2_segfault_repro_1
scito 1 year ago
parent 438cfe7ba8
commit c4ab679b6d

@ -1,11 +0,0 @@
# To get started with Dependabot version updates, you'll need to specify which
# package ecosystems to update and where the package manifests are located.
# Please see the documentation for all configuration options:
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
version: 2
updates:
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "weekly"

@ -1,8 +1,5 @@
name: tests
# https://docs.github.com/de/actions/using-workflows/workflow-syntax-for-github-actions
# https://docs.github.com/en/actions/using-workflows
on:
push:
@ -13,7 +10,7 @@ jobs:
matrix:
python-version: ["3.11"]
# platform: [ubuntu-latest, macos-latest, windows-latest]
platform: [macos-latest]
platform: [macos-11]
# exclude:
runs-on: ${{ matrix.platform }}
@ -32,10 +29,10 @@ jobs:
- name: Test with pytest cv2 4.6
run: |
pip install --force-reinstall -v "opencv-contrib-python==4.6.0.66"
pytest -vvv -s tests/extract_otp_secrets_test.py::test_cv2_segfault_6_f0
pytest -vvv -s tests/extract_otp_secrets_test.py::test_cv2_segfault_6_f1
pytest -vvv -s tests/cv2_segfault_repro.py::test_cv2_segfault_6_f0
pytest -vvv -s tests/cv2_segfault_repro.py::test_cv2_segfault_6_f1
- name: Test with pytest cv2 4.7
run: |
pip install --force-reinstall -v "opencv-contrib-python>=4.7.0"
pytest -vvv -s tests/extract_otp_secrets_test.py::test_cv2_segfault_6_f0
pytest -vvv -s tests/extract_otp_secrets_test.py::test_cv2_segfault_6_f1
pytest -vvv -s tests/cv2_segfault_repro.py::test_cv2_segfault_6_f0
pytest -vvv -s tests/cv2_segfault_repro.py::test_cv2_segfault_6_f1

@ -3,22 +3,8 @@
# Run tests:
# pytest
# Author: Scito (https://scito.ch)
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <https://www.gnu.org/licenses/>.
import cv2 # type: ignore
def test_cv2_segfault_6_f0() -> None:
print('cv2.imread')
img = cv2.imread('tests/data/test_googleauth_export.png')
Loading…
Cancel
Save