ci: Pytest coverage comment only for 3.x and ubuntu-latest

This commit is contained in:
scito
2022-12-30 01:58:54 +01:00
parent f5ee59368e
commit 23d8cfa151
2 changed files with 2 additions and 1 deletions

View File

@@ -61,3 +61,4 @@ jobs:
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml
if: matrix.python-version == '3.x' && matrix.platform == 'ubuntu-latest'

View File

@@ -231,7 +231,7 @@ def extract_otps_from_camera(args: Args) -> Otps:
elif key == 32:
qr_mode = QRMode((qr_mode.value + 1) % len(QRMode))
if verbose: print(f"QR reading mode: {qr_mode}")
if cv2.getWindowProperty(window_name,cv2.WND_PROP_VISIBLE) < 1:
if cv2.getWindowProperty(window_name, cv2.WND_PROP_VISIBLE) < 1:
# Window close clicked
break