Fix CI for ubuntu-latest
CI / Install & Test (push) Failing after 6m25s

This commit is contained in:
2026-09-05 06:57:34 +00:00
parent 3ed47ed822
commit edb59dd5a4
+8 -12
View File
@@ -13,8 +13,8 @@ concurrency:
jobs:
install-and-test:
name: Install & Test (Windows)
runs-on: windows-latest
name: Install & Test
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
@@ -29,10 +29,11 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install -r requirements-win11.txt
shell: bash
- name: Install Tesseract OCR
run: choco install tesseract --no-progress -y
run: |
sudo apt-get update
sudo apt-get install -y tesseract-ocr
- name: Python version
run: python -c "import sys; print(sys.version)"
@@ -124,7 +125,7 @@ jobs:
sys.path.insert(0, 'src')
import pytesseract
pytesseract.pytesseract.tesseract_cmd = r'C:\Program Files\Tesseract-OCR\tesseract.exe'
pytesseract.pytesseract.tesseract_cmd = '/usr/bin/tesseract'
import cv2
import numpy as np
@@ -148,7 +149,7 @@ jobs:
- name: Verify OCR (botty ocr module)
env:
PYTHONPATH: ./src
PYTESSERACT_TESSERACT_CMD: C:\Program Files\Tesseract-OCR\tesseract.exe
PYTESSERACT_TESSERACT_CMD: /usr/bin/tesseract
run: |
python -c "
import sys, os
@@ -201,13 +202,8 @@ jobs:
- name: Upload coverage
uses: actions/upload-artifact@v4
if: always()
# Non-blocking: this is a convenience artifact, not a gate. When the account's
# artifact storage quota is full the upload fails with
# "Failed to CreateArtifact: Artifact storage quota has been hit" and marked the
# whole run red even though every test step passed. A quota problem is not a
# broken build.
continue-on-error: true
with:
name: coverage-report
path: coverage.xml
retention-days: 7
retention-days: 7