From 142e32dd194bfc55f8c68fad3407a214c785b41f Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Sat, 24 Jan 2026 21:54:54 +0000 Subject: [PATCH 1/4] Install cairo dependency in docs CI build. --- .github/workflows/docs_test_action.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs_test_action.yml b/.github/workflows/docs_test_action.yml index ebba3c8..2fbd0a1 100644 --- a/.github/workflows/docs_test_action.yml +++ b/.github/workflows/docs_test_action.yml @@ -23,6 +23,8 @@ jobs: uses: sphinx-toolbox/sphinx-action@sphinx-3.3.1-py39 with: - pre-build-command: python -m pip install tox + pre-build-command: | + python -m pip install tox + apt-get install libcairo2-dev -y docs-folder: "doc-source/" build-command: "tox -e docs -- " From 79b9c315c438b473e735d74a85919ac4b8fe484b Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Sat, 24 Jan 2026 21:57:36 +0000 Subject: [PATCH 2/4] Also install pkg-config and cmake --- .github/workflows/docs_test_action.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/docs_test_action.yml b/.github/workflows/docs_test_action.yml index 2fbd0a1..01bc91c 100644 --- a/.github/workflows/docs_test_action.yml +++ b/.github/workflows/docs_test_action.yml @@ -25,6 +25,6 @@ jobs: with: pre-build-command: | python -m pip install tox - apt-get install libcairo2-dev -y + apt-get install libcairo2-dev pkg-config cmake -y docs-folder: "doc-source/" build-command: "tox -e docs -- " From f181e88cc4b9788f8dbd657ec6926ee69edd5444 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Sat, 24 Jan 2026 21:59:54 +0000 Subject: [PATCH 3/4] Need apt update first --- .github/workflows/docs_test_action.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/docs_test_action.yml b/.github/workflows/docs_test_action.yml index 01bc91c..cd10215 100644 --- a/.github/workflows/docs_test_action.yml +++ b/.github/workflows/docs_test_action.yml @@ -25,6 +25,7 @@ jobs: with: pre-build-command: | python -m pip install tox + apt update apt-get install libcairo2-dev pkg-config cmake -y docs-folder: "doc-source/" build-command: "tox -e docs -- " From a1b53802bf28ea71ed667125c7165a082f56b804 Mon Sep 17 00:00:00 2001 From: Dominic Davis-Foster Date: Sat, 24 Jan 2026 22:04:05 +0000 Subject: [PATCH 4/4] Configure with repo-helper --- .github/workflows/docs_test_action.yml | 2 +- repo_helper.yml | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs_test_action.yml b/.github/workflows/docs_test_action.yml index cd10215..c343cf1 100644 --- a/.github/workflows/docs_test_action.yml +++ b/.github/workflows/docs_test_action.yml @@ -26,6 +26,6 @@ jobs: pre-build-command: | python -m pip install tox apt update - apt-get install libcairo2-dev pkg-config cmake -y + apt install libcairo2-dev pkg-config cmake -y docs-folder: "doc-source/" build-command: "tox -e docs -- " diff --git a/repo_helper.yml b/repo_helper.yml index deb4207..875e9e7 100644 --- a/repo_helper.yml +++ b/repo_helper.yml @@ -54,3 +54,8 @@ github_ci_requirements: post: # Prefery binary wheels for older versions over sdists for newer ones - pip config set global.prefer-binary true + +docs_apt_packages: + - libcairo2-dev + - pkg-config + - cmake