Skip to content

Commit

Permalink
Test on 3.11-dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jarrodmillman committed Apr 30, 2022
1 parent 9233a82 commit 7282b08
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,3 +63,46 @@ jobs:
run: |
make -C doc html SPHINXOPTS="-nT"
make -C doc latexpdf SPHINXOPTS="-nT"
test-dev:
runs-on: ${{ matrix.os }}-latest
strategy:
matrix:
os: [Ubuntu]
python-version: ["3.11-dev"]
sphinx-version:
["sphinx==3.0", "sphinx==3.5", "sphinx==4.0", "sphinx>4.4"]
steps:
- uses: actions/checkout@v2

- name: Python setup
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}

- name: Setup environment
run: |
python -m pip install --upgrade pip wheel setuptools
python -m pip install pytest pytest-cov
python -m pip install ${{ matrix.sphinx-version }}
python -m pip list
- name: Downgrade Jinja2 for sphinx<4
if: ${{ matrix.sphinx-version }} == 'sphinx<4.0.2'
run: python -m pip install jinja2==3.0.3 markupsafe==2.0.1 pydata-sphinx-theme==0.8.0

- name: Install
run: |
python -m pip install .
pip list
- name: Run test suite
run: |
pytest -v --pyargs numpydoc
- name: Make sure CLI works
run: |
python -m numpydoc numpydoc.tests.test_main._capture_stdout
echo '! python -m numpydoc numpydoc.tests.test_main._invalid_docstring' | bash
python -m numpydoc --validate numpydoc.tests.test_main._capture_stdout
echo '! python -m numpydoc --validate numpydoc.tests.test_main._docstring_with_errors' | bash

0 comments on commit 7282b08

Please sign in to comment.