diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 5615dd1..d044dc6 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -44,6 +44,10 @@ jobs: exclude: - python-version: "3.8" sphinx-version: "7.2.*" + - python-version: "3.8" + sphinx-version: "8.0.*" + - python-version: "3.9" + sphinx-version: "8.0.*" steps: - uses: actions/checkout@v2 @@ -61,17 +65,25 @@ jobs: SPHINX=Sphinx JINJA2=jinja2 - APPLEHELP=sphinxcontrib-applehelp + + SPHINXCONTRIB_PINNED="sphinxcontrib-applehelp<1.0.8 " + SPHINXCONTRIB_PINNED+="sphinxcontrib-devhelp<1.0.6 " + SPHINXCONTRIB_PINNED+="sphinxcontrib-htmlhelp<2.0.5 " + SPHINXCONTRIB_PINNED+="sphinxcontrib-jsmath<1.0.1 " + SPHINXCONTRIB_PINNED+="sphinxcontrib-qthelp<1.0.7 " + SPHINXCONTRIB_PINNED+="sphinxcontrib-serializinghtml<1.1.10 " + + EXTRAS="" if [[ $SPHINX_VERSION != "" ]]; then SPHINX="${SPHINX}==${SPHINX_VERSION}"; JINJA2="${JINJA2}<3.1"; fi - if [[ $SPHINX_VERSION == 3* ]] || [[ $SPHINX_VERSION == 4* ]]; then - APPLEHELP="${APPLEHELP}<2.0"; + if [[ $SPHINX_VERSION == 3* || $SPHINX_VERSION == 4* ]]; then + EXTRAS="{$SPHINXCONTRIB_PINNED}"; fi - pip install pytest pytest-cov codecov "${SPHINX}" "${JINJA2}" "${APPLEHELP}" beautifulsoup4 -e . + pip install pytest pytest-cov codecov "${SPHINX}" "${JINJA2}" "${EXTRAS}" beautifulsoup4 -e . - name: Test with pytest run: | pytest --cov=autodocsumm --cov-report=xml tests