From e124f6b5c6009069f894e712541a7e5a4ae80d9d Mon Sep 17 00:00:00 2001 From: Jared Parnell Date: Wed, 2 Nov 2022 12:48:45 +0000 Subject: [PATCH] actions: Sphinx-build action with nit-picky modeand turn warnings into errors https://github.com/Open-Telecoms-Data/open-fibre-data-standard/issues/19 --- .github/workflows/sphinx-build.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/sphinx-build.yml diff --git a/.github/workflows/sphinx-build.yml b/.github/workflows/sphinx-build.yml new file mode 100644 index 0000000..a219505 --- /dev/null +++ b/.github/workflows/sphinx-build.yml @@ -0,0 +1,19 @@ +name: Sphinx Build +on: [push, pull_request] + +jobs: + linkcheck: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - name: Setup python + uses: actions/setup-python@v2 + with: + python-version: 3.9 + architecture: x64 + - uses: actions/cache@v1 + with: + path: ~/.cache/pip + key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }} + - run: pip install -r requirements.txt + - run: cd ./docs/ && sphinx-build -nW . ./temp_build