2021-04-06 21:32:01 +01:00
|
|
|
name: Document Linter
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
branches:
|
|
|
|
- main
|
2022-01-06 10:40:52 +00:00
|
|
|
- "*LTS"
|
2021-12-05 22:05:07 +00:00
|
|
|
types: [opened, synchronize, reopened, ready_for_review]
|
2021-04-06 21:32:01 +01:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
docsLinter:
|
2021-12-05 22:05:07 +00:00
|
|
|
if: github.event.pull_request.draft == false
|
2021-04-06 21:32:01 +01:00
|
|
|
name: Lint Documentation
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
config:
|
2022-12-17 21:46:22 +00:00
|
|
|
- {python-version: "3.10", tox-env: "docs"}
|
2021-04-06 21:32:01 +01:00
|
|
|
fail-fast: false
|
|
|
|
|
|
|
|
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
|
|
|
- name: Run Document Linter
|
|
|
|
uses: harshanarayana/custom-actions@main
|
|
|
|
with:
|
|
|
|
python-version: ${{ matrix.config.python-version }}
|
|
|
|
test-infra-tool: tox
|
|
|
|
test-infra-version: latest
|
|
|
|
action: tests
|
|
|
|
test-additional-args: "-e=${{ matrix.config.tox-env }}"
|