Skip to content

Commit

Permalink
Compose local,tesseract,Fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
JersyJ committed Jun 30, 2024
1 parent 8906bba commit d4b3bc1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/validation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ on:
- '**.py'
- '.github/workflows/validation.yml'

env:
POETRY_NO_INTERACTION: 1
POETRY_VIRTUALENVS_IN_PROJECT: 1

concurrency:
group: ${{ github.workflow }}-${{ github.ref || github.run_id }}
cancel-in-progress: true

jobs:
lint:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -58,9 +66,8 @@ jobs:
poetry install --no-interaction
- name: Ruff format
if: success() || failure()
run: |
poetry run ruff format --check . --output-format github
poetry run ruff format --check .
- name: Ruff lint
if: success() || failure()
Expand Down
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ RUN poetry install --without dev --no-root && rm -rf $POETRY_CACHE_DIR

FROM python:3.12-slim-bookworm as runtime

RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
&& apt-get -y install tesseract-ocr

WORKDIR /app

COPY --from=build-stage /app .
Expand Down

0 comments on commit d4b3bc1

Please sign in to comment.