Skip to content

Commit

Permalink
ci: Add sphinx related job
Browse files Browse the repository at this point in the history
Because by default we don't build doc at all.

Link: https://lore.kernel.org/ltp/[email protected]/
Acked-by: Cyril Hrubis <[email protected]>
Signed-off-by: Petr Vorel <[email protected]>
  • Loading branch information
pevik committed May 7, 2024
1 parent a835b07 commit 7841eed
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/ci-sphinx-doc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2024 Petr Vorel <[email protected]>

name: "Test building sphinx doc"

on: [push, pull_request]

permissions: {}

jobs:
sphinx:
runs-on: ubuntu-latest
steps:
- name: Checkout LTP
uses: actions/checkout@v2
with:
path: ltp

- name: Install sphinx
run: |
sudo apt update
sudo apt install python3-sphinx python3-virtualenv
- name: Install sphinx dependencies
run: |
cd "$GITHUB_WORKSPACE/ltp/doc/"
python3 -m virtualenv .venv
. .venv/bin/activate
pip install -r requirements.txt
- name: Build doc
run: |
cd "$GITHUB_WORKSPACE/ltp/doc/"
. .venv/bin/activate
make

0 comments on commit 7841eed

Please sign in to comment.