mirror of
https://github.com/docling-project/docling-serve.git
synced 2025-11-29 00:23:36 +00:00
to ensure the code maintenance. Thanks to docling project- took some good bits around python linting from the project. These checks are also added in the markdown, so that user can run these checks locally to recreate the errors. Signed-off-by: Anil Vishnoi <vishnoianil@gmail.com>
24 lines
563 B
YAML
24 lines
563 B
YAML
name: Lint GitHub Actions workflows
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
paths:
|
|
- '.github/**'
|
|
pull_request:
|
|
branches: ["main"]
|
|
paths:
|
|
- '.github/**'
|
|
|
|
jobs:
|
|
actionlint:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Download actionlint
|
|
id: get_actionlint
|
|
run: bash <(curl https://raw.githubusercontent.com/rhysd/actionlint/main/scripts/download-actionlint.bash)
|
|
shell: bash
|
|
- name: Check workflow files
|
|
run: PATH=".:$PATH" make action-lint
|
|
shell: bash
|