Skip to content

Commit

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

Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed May 6, 2024
1 parent 8cb6129 commit dd99000
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 <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

0 comments on commit dd99000

Please sign in to comment.