[LTP] [PATCH 5/7] .github: ci-sphinx-doc: Use make for building doc

Petr Vorel pvorel@suse.cz
Thu Feb 6 15:34:19 CET 2025


Instead of defining commands directly run docs via make to verify it's
working.

Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
 .github/workflows/ci-sphinx-doc.yml | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/.github/workflows/ci-sphinx-doc.yml b/.github/workflows/ci-sphinx-doc.yml
index 9b1f4f34f8..866e349ee2 100644
--- a/.github/workflows/ci-sphinx-doc.yml
+++ b/.github/workflows/ci-sphinx-doc.yml
@@ -20,20 +20,17 @@ jobs:
         with:
           path: ltp
 
-      - name: Install sphinx
+      - name: Install configure dependencies
         run: |
           sudo apt update
-          sudo apt install python3-sphinx python3-virtualenv
+          sudo apt install autoconf make python3-virtualenv
 
       - name: Install sphinx dependencies
         run: |
-          cd "$GITHUB_WORKSPACE/ltp/doc/"
-          python3 -m virtualenv .venv
-          . .venv/bin/activate
-          pip install -r requirements.txt
+          cd "$GITHUB_WORKSPACE/ltp/"
+          make autotools && ./configure
 
       - name: Build doc
         run: |
           cd "$GITHUB_WORKSPACE/ltp/doc/"
-          . .venv/bin/activate
           make
-- 
2.47.2



More information about the ltp mailing list