From 18576cef837d183771302a97533a3240e7e5d23c Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Thu, 21 Mar 2024 10:26:56 -0300 Subject: [PATCH] Add new_docs build test Adds basic testing for the new docs build, which uses pulp-docs to aggregate all docs. See https://github.com/pulp/pulp-docs [noissue] --- CHANGES/+add-new-docs-test.feature | 1 + templates/github/.github/workflows/scripts/script.sh.j2 | 6 ++++++ templates/github/.github/workflows/test.yml.j2 | 1 + 3 files changed, 8 insertions(+) create mode 100644 CHANGES/+add-new-docs-test.feature diff --git a/CHANGES/+add-new-docs-test.feature b/CHANGES/+add-new-docs-test.feature new file mode 100644 index 00000000..74156f56 --- /dev/null +++ b/CHANGES/+add-new-docs-test.feature @@ -0,0 +1 @@ +Added basic testing to the new docs to check it can build. diff --git a/templates/github/.github/workflows/scripts/script.sh.j2 b/templates/github/.github/workflows/scripts/script.sh.j2 index b675a059..567b0967 100755 --- a/templates/github/.github/workflows/scripts/script.sh.j2 +++ b/templates/github/.github/workflows/scripts/script.sh.j2 @@ -37,6 +37,12 @@ if [[ "$TEST" = "docs" ]]; then exit fi +if [[ "$TEST" = "new_docs" ]]; then + pip install --user git+https://github.com/pulp/pulp-docs + pulp-docs build + exit +fi + REPORTED_STATUS="$(pulp status)" echo "machine pulp diff --git a/templates/github/.github/workflows/test.yml.j2 b/templates/github/.github/workflows/test.yml.j2 index 0ad31718..2315867c 100644 --- a/templates/github/.github/workflows/test.yml.j2 +++ b/templates/github/.github/workflows/test.yml.j2 @@ -27,6 +27,7 @@ jobs: - TEST: pulp {%- if docs_test %} - TEST: docs + - TEST: new_docs {%- endif %} {%- if test_azure %} - TEST: azure