From b526d0b52069638c863a398f21777f790436045b Mon Sep 17 00:00:00 2001 From: vsoch Date: Thu, 16 Nov 2023 10:58:59 -0700 Subject: [PATCH] adding test for building docs the docs build fails once in a while so we should test before merge Signed-off-by: vsoch --- .github/workflows/docs-test.yaml | 18 ++++++++++++++++++ docs/requirements.txt | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/docs-test.yaml diff --git a/.github/workflows/docs-test.yaml b/.github/workflows/docs-test.yaml new file mode 100644 index 0000000..d586240 --- /dev/null +++ b/.github/workflows/docs-test.yaml @@ -0,0 +1,18 @@ +name: docs-test metrics-operator +on: + pull_request: [] + +jobs: + generate-docs: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - name: Create conda environment + run: conda create --quiet -c conda-forge --name docs sphinx-material + - name: Generate Docs + run: | + export PATH="/usr/share/miniconda/bin:$PATH" + source activate docs + cd ./docs + pip install -r requirements.txt + make html \ No newline at end of file diff --git a/docs/requirements.txt b/docs/requirements.txt index 7054e96..fafca2d 100644 --- a/docs/requirements.txt +++ b/docs/requirements.txt @@ -1,6 +1,6 @@ sphinx markupsafe -sphinx_immaterial==0.11.7 +sphinx_immaterial numpy pydantic pandas