Skip to content

Linting Workflow

Linting Workflow #182

Workflow file for this run

name: Linting Workflow
on:
schedule:
- cron: '0 0 * * *'
push:
branches:
- '*'
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
version: ["3.15"]
continue-on-error: true
steps:
- uses: actions/setup-python@v6
with:
python-version: 3
- run: pip install sphinx-lint
- name: Resolve translation ref
id: translation-ref
run: |
if git ls-remote --exit-code --heads "https://github.com/${{ github.repository }}.git" "${{ matrix.version }}" >/dev/null; then
echo "ref=${{ matrix.version }}" >> "$GITHUB_OUTPUT"
else
echo "ref=${{ github.ref_name }}" >> "$GITHUB_OUTPUT"
fi
- uses: actions/checkout@v6
with:
ref: ${{ steps.translation-ref.outputs.ref }}
- uses: rffontenelle/sphinx-lint-problem-matcher@v1.0.0
- run: sphinx-lint