ci_docker: run smoke tests before building

cv2_1
scito 1 year ago
parent 61cca0c476
commit 965f721caf

@ -22,6 +22,15 @@ jobs:
- name: Checkout code
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
uses: docker/setup-qemu-action@v2

@ -92,10 +92,10 @@ Exception: {e}""")
FONT_LINE_STYLE: Final[int] = cv2.LINE_AA
RECT_THICKNESS: Final[int] = 5
# PYTHON <= 3.7: must use () for assignments
START_POS_TEXT: Final[Tuple[Point]] = (5, 20)
NORMAL_COLOR: Final[Tuple[ColorBGR]] = (255, 0, 255)
SUCCESS_COLOR: Final[Tuple[ColorBGR]] = (0, 255, 0)
FAILURE_COLOR: Final[Tuple[ColorBGR]] = (0, 0, 255)
START_POS_TEXT: Final[Point] = (5, 20)
NORMAL_COLOR: Final[ColorBGR] = (255, 0, 255)
SUCCESS_COLOR: Final[ColorBGR] = (0, 255, 0)
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)
qreader_available = True

Loading…
Cancel
Save