From 773cff5026f1fd83af9e91527c31da67f23626d2 Mon Sep 17 00:00:00 2001 From: Pedro Brochado Date: Tue, 16 Apr 2024 17:00:54 -0300 Subject: [PATCH] Add unified docs-ci Related to: https://github.com/pulp/pulp-docs/issues/31 [noissue] --- .github/workflows/docs-ci.yml | 19 +++++++++++++++++++ .github/workflows/tests.yml | 3 +++ Makefile | 10 ++++++++++ doc_requirements.txt | 1 + 4 files changed, 33 insertions(+) create mode 100644 .github/workflows/docs-ci.yml create mode 100644 Makefile create mode 100644 doc_requirements.txt diff --git a/.github/workflows/docs-ci.yml b/.github/workflows/docs-ci.yml new file mode 100644 index 0000000..ccd6215 --- /dev/null +++ b/.github/workflows/docs-ci.yml @@ -0,0 +1,19 @@ +name: "Docs CI" + +on: + workflow_call: + +jobs: + test: + runs-on: "ubuntu-20.04" + steps: + - uses: "actions/checkout@v4" + - name: "Set up Python" + uses: "actions/setup-python@v5" + with: + python-version: "3.11" + - name: "Install Test Dependencies" + run: | + pip install -r doc_requirements.txt + - name: Build docs + run: make docs diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index cb18efa..0e5e4b6 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -3,6 +3,9 @@ on: - pull_request - push jobs: + docs: + uses: "./.github/workflows/docs-ci.yml" + centos: runs-on: ubuntu-latest strategy: diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..26161df --- /dev/null +++ b/Makefile @@ -0,0 +1,10 @@ +help: ## Show this help. + @sed -ne '/@sed/!s/## //p' $(MAKEFILE_LIST) + +docs: ## Build unified docs. + pulp-docs build + +servedocs: ## Serves unified docs. + pulp-docs serve + +.PHONY: docs servedocs help diff --git a/doc_requirements.txt b/doc_requirements.txt new file mode 100644 index 0000000..60e329d --- /dev/null +++ b/doc_requirements.txt @@ -0,0 +1 @@ +pulp-docs @ git+https://github.com/pulp/pulp-docs@main