From 7eb6f036ab09a0403ad8888e7467553a2b4c158c Mon Sep 17 00:00:00 2001 From: scito Date: Fri, 30 Dec 2022 18:51:13 +0100 Subject: [PATCH] ci: tryout downgrade opencv for macos --- .github/workflows/ci.yml | 3 ++- pyproject.toml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 8fc79e0..64b7003 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -51,7 +51,8 @@ jobs: if: matrix.python-version == '3.x' - name: Test with pytest run: pytest - if: (matrix.python-version != '3.x' || matrix.platform != 'ubuntu-latest') && matrix.platform != 'macos-latest' + if: (matrix.python-version != '3.x' || matrix.platform != 'ubuntu-latest') + # && matrix.platform != 'macos-latest' - name: Test with pytest (with code coverage) run: pytest --cov=test_extract_otp_secret_keys_pytest --junitxml=pytest.xml --cov-report=term-missing | tee pytest-coverage.txt if: matrix.python-version == '3.x' && matrix.platform == 'ubuntu-latest' diff --git a/pyproject.toml b/pyproject.toml index 3dd62fb..622cbe3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -34,7 +34,8 @@ dependencies = [ "Pillow", "qreader", "pyzbar", - "opencv-python", + "opencv-python<=4.7.0; sys_platform == 'darwin'", + "opencv-python; sys_platform != 'darwin'", "typing_extensions; python_version<='3.7'", ] description = "Extract two-factor authentication (2FA, TFA, OTP) secret keys from export QR codes of 'Google Authenticator' app"