From 6ec273a5b5f0cffc00c941db20455d0f11acc659 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Thu, 15 May 2025 16:08:59 +0100 Subject: [PATCH 1/2] Add sphinx-lint --- .github/workflows/lint.yml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 0000000000..d13e960145 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,27 @@ +name: Linting Workflow + +on: + push: + branches: + - '*' + pull_request: + workflow_dispatch: + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + version: [ 3.13, 3.12, 3.11, 3.10 ] + continue-on-error: true + steps: + - uses: actions/setup-python@master + with: + python-version: 3 + - run: pip install sphinx-lint + - uses: actions/checkout@master + with: + ref: ${{ matrix.version }} + - uses: rffontenelle/sphinx-lint-problem-matcher@v1.0.0 + - run: sphinx-lint From ebfa078b20b3b16a129bfc8115718d8462c93454 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com> Date: Thu, 15 May 2025 16:10:57 +0100 Subject: [PATCH 2/2] Fix workflow for 3.10 --- .github/workflows/lint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d13e960145..d7008dde72 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -13,7 +13,7 @@ jobs: strategy: fail-fast: false matrix: - version: [ 3.13, 3.12, 3.11, 3.10 ] + version: [ 3.13, 3.12, 3.11, "3.10" ] continue-on-error: true steps: - uses: actions/setup-python@master