From 9a6855e8911da9b3efea4d0d14078125a5b14411 Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Sat, 6 Jun 2026 14:11:29 +0200 Subject: [PATCH 1/6] Split linting jobs into a separate workflow file --- .github/workflows/lint.yml | 44 +++++++++++++++++++ ...int-and-build.yml => update-and-build.yml} | 39 +--------------- 2 files changed, 45 insertions(+), 38 deletions(-) create mode 100644 .github/workflows/lint.yml rename .github/workflows/{update-lint-and-build.yml => update-and-build.yml} (79%) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..9a2b2cbd0 --- /dev/null +++ b/.github/workflows/lint.yml @@ -0,0 +1,44 @@ +name: lint + +on: # zizmor: ignore[dangerous-triggers] + workflow_run: + workflows: [update-and-build] + types: [completed] + +permissions: {} + +jobs: + lint: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + version: [3.15, 3.14, 3.13, 3.12, 3.11] + continue-on-error: true + steps: + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version: 3 + - run: pip install sphinx-lint + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + with: + ref: ${{ matrix.version }} + persist-credentials: false + - uses: rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0 + - run: sphinx-lint + + lint-epub: + runs-on: ubuntu-latest + strategy: + matrix: + version: [3.15, 3.14] + continue-on-error: true + steps: + - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 + with: + python-version: 3.x + - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 + - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 + with: + name: build-${{ matrix.version }}-epub + - run: uvx epubcheck diff --git a/.github/workflows/update-lint-and-build.yml b/.github/workflows/update-and-build.yml similarity index 79% rename from .github/workflows/update-lint-and-build.yml rename to .github/workflows/update-and-build.yml index 603383c52..b06007146 100644 --- a/.github/workflows/update-lint-and-build.yml +++ b/.github/workflows/update-and-build.yml @@ -1,4 +1,4 @@ -name: Translation and Linting Workflow +name: update and build on: schedule: @@ -71,26 +71,6 @@ jobs: branch: ${{ matrix.version }} github_token: ${{ secrets.GITHUB_TOKEN }} - lint: - runs-on: ubuntu-latest - strategy: - fail-fast: false - matrix: - version: [3.15, 3.14, 3.13, 3.12, 3.11] - needs: [update] - continue-on-error: true - steps: - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 - with: - python-version: 3 - - run: pip install sphinx-lint - - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 - with: - ref: ${{ matrix.version }} - persist-credentials: false - - uses: rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0 - - run: sphinx-lint - build: runs-on: ubuntu-latest strategy: @@ -145,20 +125,3 @@ jobs: with: name: build-${{ matrix.version }}-pdf path: . - - lint-epub: - runs-on: ubuntu-latest - strategy: - matrix: - version: [3.15, 3.14] - needs: [build] - continue-on-error: true - steps: - - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 - with: - python-version: 3.x - - uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0 - - uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 - with: - name: build-${{ matrix.version }}-epub - - run: uvx epubcheck From c54b55a2c85f0426ac29695bb2a91c71d832bd6b Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Sat, 6 Jun 2026 14:18:40 +0200 Subject: [PATCH 2/6] Set SPHINXERRORHANDLING environment variable to 0 in build workflow --- .github/workflows/update-and-build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/update-and-build.yml b/.github/workflows/update-and-build.yml index b06007146..fcc8b4450 100644 --- a/.github/workflows/update-and-build.yml +++ b/.github/workflows/update-and-build.yml @@ -102,6 +102,8 @@ jobs: - uses: sphinx-doc/github-problem-matcher@1f74d6599f4a5e89a20d3c99aab4e6a70f7bda0f # v1.1 - run: make -e SPHINXOPTS="--color -D language='pl' -W --keep-going" ${{ matrix.format }} working-directory: ./Doc + env: + SPHINXERRORHANDLING: 0 - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 if: success() || failure() with: From d0ab3baa5c8d302e6cbe2e0e602d275921e9c70d Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Sat, 6 Jun 2026 15:29:52 +0200 Subject: [PATCH 3/6] Set SPHINXERRORHANDLING environment variable to '' in build workflow --- .github/workflows/update-and-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-and-build.yml b/.github/workflows/update-and-build.yml index fcc8b4450..974718500 100644 --- a/.github/workflows/update-and-build.yml +++ b/.github/workflows/update-and-build.yml @@ -103,7 +103,7 @@ jobs: - run: make -e SPHINXOPTS="--color -D language='pl' -W --keep-going" ${{ matrix.format }} working-directory: ./Doc env: - SPHINXERRORHANDLING: 0 + SPHINXERRORHANDLING: '' - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 if: success() || failure() with: From 08b7f0bd7452510e11ca0a7106b557c834266892 Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Sat, 6 Jun 2026 15:50:09 +0200 Subject: [PATCH 4/6] Remove fail-on-warning flag from Sphinx build options in update-and-build workflow --- .github/workflows/update-and-build.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/update-and-build.yml b/.github/workflows/update-and-build.yml index 974718500..be89c07a9 100644 --- a/.github/workflows/update-and-build.yml +++ b/.github/workflows/update-and-build.yml @@ -100,7 +100,7 @@ jobs: - run: sudo apt-get update && sudo apt-get install -y librsvg2-bin if: ${{ matrix.format == 'latex' && fromJSON(matrix.version) >= 3.14 }} - uses: sphinx-doc/github-problem-matcher@1f74d6599f4a5e89a20d3c99aab4e6a70f7bda0f # v1.1 - - run: make -e SPHINXOPTS="--color -D language='pl' -W --keep-going" ${{ matrix.format }} + - run: make -e SPHINXOPTS="--color -D language='pl' --keep-going" ${{ matrix.format }} working-directory: ./Doc env: SPHINXERRORHANDLING: '' From de91514d3735b0ad7dc51a518871ef5542c50a3d Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Sat, 6 Jun 2026 17:14:23 +0200 Subject: [PATCH 5/6] Install librsvg2-bin in output-pdf step --- .github/workflows/update-and-build.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/update-and-build.yml b/.github/workflows/update-and-build.yml index be89c07a9..350643999 100644 --- a/.github/workflows/update-and-build.yml +++ b/.github/workflows/update-and-build.yml @@ -122,6 +122,8 @@ jobs: name: build-${{ matrix.version }}-latex - run: sudo apt-get update - run: sudo apt-get install -y latexmk texlive-xetex fonts-freefont-otf xindy + - run: sudo apt-get install -y librsvg2-bin + if: ${{ fromJSON(matrix.version) >= 3.14 }} - run: make - uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 with: From 9a081e815d265b5c47cf11f62732b8e467a6e1d2 Mon Sep 17 00:00:00 2001 From: Maciej Olko Date: Sat, 6 Jun 2026 18:42:20 +0200 Subject: [PATCH 6/6] Disable fail-fast in output-pdf job strategy --- .github/workflows/update-and-build.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/update-and-build.yml b/.github/workflows/update-and-build.yml index 350643999..a50e3793d 100644 --- a/.github/workflows/update-and-build.yml +++ b/.github/workflows/update-and-build.yml @@ -113,6 +113,7 @@ jobs: output-pdf: runs-on: ubuntu-latest strategy: + fail-fast: false matrix: version: [3.15, 3.14, 3.13, 3.12, 3.11, '3.10'] needs: [build]