Merge pull request #35 from jdillard/feature/singlerst-builder #27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Tests | |
| on: | |
| push: | |
| branches-ignore: | |
| - dev-* | |
| - local-* | |
| - temp-* | |
| pull_request: | |
| jobs: | |
| build_and_test: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| # If you change the test matrix, also change it in tox.ini | |
| matrix: | |
| # Test the latest stable Sphinx version on all current Python versions | |
| sphinx: ['4.0'] | |
| python: [3.6, 3.7, 3.8, 3.9] | |
| include: | |
| # Also test oldest support Sphinx version for each Python version | |
| # and ensure that we test all major versions of Sphinx too. | |
| # Note: X.0 versions must be quoted as string; Github would otherwise | |
| # set them as "X" (without the ".0"), which is undefined in tox.ini. | |
| # Sphinx 1.4 added support for Python 3.5 | |
| - sphinx: 1.4 | |
| python: 2.7 | |
| - sphinx: 1.4 | |
| python: 3.5 | |
| - sphinx: '2.0' | |
| python: 3.5 | |
| # Sphinx 1.5 added support for Python 3.6 | |
| - sphinx: 1.5 | |
| python: 3.6 | |
| # Sphinx 1.8 added support for Python 3.7 and 3.8 | |
| - sphinx: 1.8 | |
| python: 2.7 | |
| - sphinx: 1.8 | |
| python: 3.8 | |
| # Sphinx 2.4 added support for Python 3.9 | |
| - sphinx: 2.4 | |
| python: 3.9 | |
| - sphinx: '3.0' | |
| python: 3.9 | |
| - sphinx: 3.4 | |
| python: 3.9 | |
| name: Python ${{ matrix.python }} - Sphinx ${{ matrix.sphinx }} | |
| steps: | |
| - name: Checkout latest commit | |
| uses: actions/checkout@v2 | |
| - name: Set up Python ${{ matrix.python }} | |
| uses: actions/setup-python@v2 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Cache pip | |
| uses: actions/cache@v2 | |
| id: cache-pip | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ matrix.python }}-pip- | |
| - name: Install dependencies | |
| run: python -m pip install --upgrade tox | |
| - name: Run tests | |
| env: | |
| TOXENV: python${{ matrix.python }}-sphinx${{ matrix.sphinx }} | |
| run: tox -e $TOXENV |