mirror of
https://github.com/scito/extract_otp_secrets.git
synced 2025-12-20 17:20:04 +01:00
ci_docker: run smoke tests before building
This commit is contained in:
9
.github/workflows/ci_docker.yml
vendored
9
.github/workflows/ci_docker.yml
vendored
@@ -22,6 +22,15 @@ jobs:
|
|||||||
- name: Checkout code
|
- name: Checkout code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
|
|
||||||
|
# avoid building if there are testing errors
|
||||||
|
- name: Run smoke test
|
||||||
|
run: |
|
||||||
|
sudo apt-get install -y libzbar0
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install -r requirements-dev.txt
|
||||||
|
pip install .
|
||||||
|
pytest
|
||||||
|
|
||||||
- name: Set up QEMU
|
- name: Set up QEMU
|
||||||
uses: docker/setup-qemu-action@v2
|
uses: docker/setup-qemu-action@v2
|
||||||
|
|
||||||
|
|||||||
@@ -92,10 +92,10 @@ Exception: {e}""")
|
|||||||
FONT_LINE_STYLE: Final[int] = cv2.LINE_AA
|
FONT_LINE_STYLE: Final[int] = cv2.LINE_AA
|
||||||
RECT_THICKNESS: Final[int] = 5
|
RECT_THICKNESS: Final[int] = 5
|
||||||
# PYTHON <= 3.7: must use () for assignments
|
# PYTHON <= 3.7: must use () for assignments
|
||||||
START_POS_TEXT: Final[Tuple[Point]] = (5, 20)
|
START_POS_TEXT: Final[Point] = (5, 20)
|
||||||
NORMAL_COLOR: Final[Tuple[ColorBGR]] = (255, 0, 255)
|
NORMAL_COLOR: Final[ColorBGR] = (255, 0, 255)
|
||||||
SUCCESS_COLOR: Final[Tuple[ColorBGR]] = (0, 255, 0)
|
SUCCESS_COLOR: Final[ColorBGR] = (0, 255, 0)
|
||||||
FAILURE_COLOR: Final[Tuple[ColorBGR]] = (0, 0, 255)
|
FAILURE_COLOR: Final[ColorBGR] = (0, 0, 255)
|
||||||
FONT_DY: Final[Tuple[int, int]] = (0, cv2.getTextSize("M", FONT, FONT_SCALE, FONT_THICKNESS)[0][1] + 5)
|
FONT_DY: Final[Tuple[int, int]] = (0, cv2.getTextSize("M", FONT, FONT_SCALE, FONT_THICKNESS)[0][1] + 5)
|
||||||
|
|
||||||
qreader_available = True
|
qreader_available = True
|
||||||
|
|||||||
Reference in New Issue
Block a user