* [LTP] [PATCH 1/1] ci: Add spinx related job
@ 2024-05-06 21:27 Petr Vorel
2024-05-07 15:07 ` Petr Vorel
0 siblings, 1 reply; 4+ messages in thread
From: Petr Vorel @ 2024-05-06 21:27 UTC (permalink / raw)
To: ltp
Because by default we don't build doc at all.
Signed-off-by: Petr Vorel <pvorel@suse.cz>
---
Hi,
Tested: https://github.com/pevik/ltp/actions/runs/8976016156
NOTE: it'd be nice to add make install target
(I'm not sure how to get prefix, hopefully including
include/mk/config.mk could be enough).
Also, I'd rename (in a separate commit) .github/workflows/ci.yml
to .github/workflows/ci-docker-build.yml to make it more obvious.
Kind regards,
Petr
.github/workflows/ci-sphinx-doc.yml | 35 +++++++++++++++++++++++++++++
1 file changed, 35 insertions(+)
create mode 100644 .github/workflows/ci-sphinx-doc.yml
diff --git a/.github/workflows/ci-sphinx-doc.yml b/.github/workflows/ci-sphinx-doc.yml
new file mode 100644
index 000000000..4bde5cbc8
--- /dev/null
+++ b/.github/workflows/ci-sphinx-doc.yml
@@ -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
--
2.43.0
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply related [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH 1/1] ci: Add spinx related job
2024-05-06 21:27 [LTP] [PATCH 1/1] ci: Add spinx related job Petr Vorel
@ 2024-05-07 15:07 ` Petr Vorel
2024-05-07 15:21 ` Cyril Hrubis
0 siblings, 1 reply; 4+ messages in thread
From: Petr Vorel @ 2024-05-07 15:07 UTC (permalink / raw)
To: ltp
Hi all,
...
> +jobs:
> + sphinx:
> + runs-on: ubuntu-latest
> + steps:
> + - name: Checkout LTP
> + uses: actions/checkout@v2
> + with:
> + path: ltp
> +
> + - name: Install spinx
Ah, typo here and in the subject:
s/spinx/sphinx
> + run: |
> + sudo apt update
> + sudo apt install python3-sphinx python3-virtualenv
> +
> + - name: Install spinx dependencies
And here as well.
Tested fixed branch:
https://github.com/pevik/ltp/actions/runs/8987761091
I'd like to merge soon, so that we have testing before doing more doc updates.
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH 1/1] ci: Add spinx related job
2024-05-07 15:07 ` Petr Vorel
@ 2024-05-07 15:21 ` Cyril Hrubis
2024-05-07 16:47 ` Petr Vorel
0 siblings, 1 reply; 4+ messages in thread
From: Cyril Hrubis @ 2024-05-07 15:21 UTC (permalink / raw)
To: Petr Vorel; +Cc: ltp
Hi!
> Tested fixed branch:
> https://github.com/pevik/ltp/actions/runs/8987761091
>
> I'd like to merge soon, so that we have testing before doing more doc updates.
Yes please, you can add my Acked-by:
--
Cyril Hrubis
chrubis@suse.cz
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: [LTP] [PATCH 1/1] ci: Add spinx related job
2024-05-07 15:21 ` Cyril Hrubis
@ 2024-05-07 16:47 ` Petr Vorel
0 siblings, 0 replies; 4+ messages in thread
From: Petr Vorel @ 2024-05-07 16:47 UTC (permalink / raw)
To: Cyril Hrubis; +Cc: ltp
Hi Cyril,
> Hi!
> > Tested fixed branch:
> > https://github.com/pevik/ltp/actions/runs/8987761091
> > I'd like to merge soon, so that we have testing before doing more doc updates.
> Yes please, you can add my Acked-by:
Thanks, merged!
Kind regards,
Petr
--
Mailing list info: https://lists.linux.it/listinfo/ltp
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2024-05-07 16:47 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-05-06 21:27 [LTP] [PATCH 1/1] ci: Add spinx related job Petr Vorel
2024-05-07 15:07 ` Petr Vorel
2024-05-07 15:21 ` Cyril Hrubis
2024-05-07 16:47 ` Petr Vorel
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox