forked from linux-test-project/ltp
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Because by default we don't build doc at all. Signed-off-by: Petr Vorel <pvorel@suse.cz>
- Loading branch information
Showing
1 changed file
with
35 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 <pvorel@suse.cz> | ||
|
||
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 spinx | ||
run: | | ||
sudo apt update | ||
sudo apt install python3-sphinx python3-virtualenv | ||
- name: Install spinx 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 |