Skip to content

Commit 1d376ab

Browse files
authored
adding test for building docs (#79)
the docs build fails once in a while so we should test before merge Signed-off-by: vsoch <vsoch@users.noreply.github.com> Co-authored-by: vsoch <vsoch@users.noreply.github.com>
1 parent 9680ae6 commit 1d376ab

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

.github/workflows/docs-test.yaml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
name: docs-test metrics-operator
2+
on:
3+
pull_request: []
4+
5+
jobs:
6+
generate-docs:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v4
10+
- name: Create conda environment
11+
run: conda create --quiet -c conda-forge --name docs sphinx-material
12+
- name: Generate Docs
13+
run: |
14+
export PATH="/usr/share/miniconda/bin:$PATH"
15+
source activate docs
16+
cd ./docs
17+
pip install -r requirements.txt
18+
make html

docs/requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
sphinx
22
markupsafe
3-
sphinx_immaterial==0.11.7
3+
sphinx_immaterial
44
numpy
55
pydantic
66
pandas

0 commit comments

Comments
 (0)