Skip to content

Commit 7841eed

Browse files
committed
ci: Add sphinx related job
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]>
1 parent a835b07 commit 7841eed

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/ci-sphinx-doc.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# SPDX-License-Identifier: GPL-2.0-or-later
2+
# Copyright (c) 2024 Petr Vorel <[email protected]>
3+
4+
name: "Test building sphinx doc"
5+
6+
on: [push, pull_request]
7+
8+
permissions: {}
9+
10+
jobs:
11+
sphinx:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout LTP
15+
uses: actions/checkout@v2
16+
with:
17+
path: ltp
18+
19+
- name: Install sphinx
20+
run: |
21+
sudo apt update
22+
sudo apt install python3-sphinx python3-virtualenv
23+
24+
- name: Install sphinx dependencies
25+
run: |
26+
cd "$GITHUB_WORKSPACE/ltp/doc/"
27+
python3 -m virtualenv .venv
28+
. .venv/bin/activate
29+
pip install -r requirements.txt
30+
31+
- name: Build doc
32+
run: |
33+
cd "$GITHUB_WORKSPACE/ltp/doc/"
34+
. .venv/bin/activate
35+
make

0 commit comments

Comments
 (0)