mirror of
https://github.com/docling-project/docling-serve.git
synced 2026-04-25 10:57:38 +00:00
Github Action runners are running out of the space while building both the images in parallel. This change will build the image sequentially and also clean up the cpu images before start building gpu image. Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
35 lines
798 B
YAML
35 lines
798 B
YAML
name: Run linter checks
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
pull_request:
|
|
branches: ["main"]
|
|
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
py-lint:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.11']
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./.github/actions/setup-poetry
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Run styling check
|
|
run: poetry run pre-commit run --all-files
|
|
|
|
markdown-lint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: markdownlint-cli2-action
|
|
uses: DavidAnson/markdownlint-cli2-action@v16
|
|
with:
|
|
globs: "**/*.md"
|
|
|