From 19bc222cc108e1fb8477763db7e1891924fc68f6 Mon Sep 17 00:00:00 2001 From: JamesGibo <22477854+JamesGibo@users.noreply.github.com> Date: Mon, 4 Sep 2023 16:06:34 +0100 Subject: [PATCH] Use newer sphinx docker image and upgrade pip --- .github/workflows/check-sphinx-and-links.yml | 16 ++++++---------- 1 file changed, 6 insertions(+), 10 deletions(-) diff --git a/.github/workflows/check-sphinx-and-links.yml b/.github/workflows/check-sphinx-and-links.yml index 285a2006..802a8f8c 100644 --- a/.github/workflows/check-sphinx-and-links.yml +++ b/.github/workflows/check-sphinx-and-links.yml @@ -8,21 +8,17 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 - - name: Set up Python - uses: actions/setup-python@v4.7.0 - with: - python-version: '3.10' - - - name: "Install prerequisites" - run: | - pip3 install -r docs/requirements.txt - - uses: ammaraskar/sphinx-action@master + # - uses: ammaraskar/sphinx-action@master + # Using fork of sphinx-action to support python version > 3.9 + # As sphinx-action not updated the sphinx docker image it uses + - uses: erpcya/sphinx-action@feature/#update-sphinx-base-image with: docs-folder: "docs/" pre-build-command: | + pip3 install --upgrade pip sphinx-apidoc -f grafanalib -o docs/api - python setup.py install --user + python3 setup.py install --user build-command: "make html" - name: Link Checker