From dd8e3511c9dfb751eca1a79e181336e2cd603416 Mon Sep 17 00:00:00 2001 From: Hui Chao Date: Thu, 5 Sep 2024 15:39:32 +0800 Subject: [PATCH] DOC: update sphinx to latest version (#104) --- .github/workflows/python.yaml | 8 ++++++++ python/setup.cfg | 4 ++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python.yaml b/.github/workflows/python.yaml index 77bb4bae..9e9406c3 100644 --- a/.github/workflows/python.yaml +++ b/.github/workflows/python.yaml @@ -88,6 +88,7 @@ jobs: - { os: windows-latest, python-version: 3.10} include: - { os: self-hosted, module: gpu, python-version: 3.11} + - { os: ubuntu-20.04, module: doc-build, python-version: 3.9} steps: - name: Check out code @@ -141,7 +142,14 @@ jobs: pip install -e ./ working-directory: ./python + - name: Build doc + if: ${{ matrix.module == 'doc-build' }} + run: | + make html + working-directory: ./doc + - name: Test with pytest + if: ${{ matrix.module != 'doc-build'}} env: MODULE: ${{ matrix.module }} run: | diff --git a/python/setup.cfg b/python/setup.cfg index 0437cef6..0e5093fa 100644 --- a/python/setup.cfg +++ b/python/setup.cfg @@ -50,7 +50,7 @@ dev = pytest-forked>=1.0 pytest-asyncio>=0.14.0 ipython>=6.5.0 - sphinx>=3.0.0,<5.0.0 + sphinx pydata-sphinx-theme>=0.3.0 sphinx-intl>=0.9.9 mock>=4.0.0; python_version<"3.8" @@ -58,7 +58,7 @@ dev = black doc = ipython>=6.5.0 - sphinx>=3.0.0,<5.0.0 + sphinx pydata-sphinx-theme>=0.3.0 sphinx-intl>=0.9.9 extra =