-
Notifications
You must be signed in to change notification settings - Fork 1.1k
77 lines (65 loc) · 2.14 KB
/
ci-sphinx-doc.yml
File metadata and controls
77 lines (65 loc) · 2.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# SPDX-License-Identifier: GPL-2.0-or-later
# Copyright (c) 2024 Petr Vorel <pvorel@suse.cz>
name: "Test building sphinx doc"
on:
push:
branches:
- master
pull_request:
paths: ['doc/**']
workflow_dispatch:
inputs:
SERIES_ID:
description: LTP patch series ID
required: false
default: ''
SERIES_MBOX:
description: LTP patch series URL
required: false
default: ''
permissions: {}
jobs:
sphinx:
runs-on: ubuntu-latest
steps:
- name: Checkout LTP
uses: actions/checkout@v1
- name: Install sphinx and autotools
run: |
sudo apt update
sudo apt install autoconf make python3-virtualenv
- name: Apply Patchwork series
if: inputs.SERIES_ID != '' && inputs.SERIES_MBOX != ''
env:
PATCHWORK_TOKEN: ${{ secrets.PATCHWORK_TOKEN }}
run: |
git config --global user.name 'GitHub CI'
git config --global user.email 'github@example.com'
git config --global --add safe.directory "$GITHUB_WORKSPACE"
git checkout -b review_patch_series_"${{ inputs.SERIES_ID }}"
curl -k -L --retry 3 --max-redirs 1 --location-trusted "${{ inputs.SERIES_MBOX }}" | git am
./ci/tools/patchwork.sh state "${{ inputs.SERIES_ID }}" "needs-review-ack"
- name: Run configure
run: |
make autotools && ./configure
- name: Send results to Patchwork
if: always() && inputs.SERIES_ID != '' && inputs.SERIES_MBOX != ''
env:
PATCHWORK_TOKEN: ${{ secrets.PATCHWORK_TOKEN }}
run: |
./ci/tools/patchwork.sh check \
"${{ inputs.SERIES_ID }}" \
"${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}" \
"${{ matrix.container }}" \
"${{ job.status }}"
- name: Install sphinx dependencies
run: |
cd "doc/"
python3 -m virtualenv .venv
. .venv/bin/activate
pip install -r requirements.txt
- name: Build doc
run: |
cd "doc/"
. .venv/bin/activate
make