docs #247
This file contains 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: Test | |
on: [push, pull_request] | |
jobs: | |
test: | |
# Need to use an older Ubuntu so Python 3.6 is available | |
runs-on: ubuntu-20.04 | |
strategy: | |
matrix: | |
python-version: [ '3.8', '3.9', '3.10', '3.11'] | |
# Removed testing of myst-parser-version<0.18.0 | |
myst-parser-version: [ '>=0.18.0,<0.19', '>=0.19.0,<1.0', '>=1.0.0,<2', '>=2.0.0,<3', '>=3.0.0,<4'] | |
jsonref-version: [">1"] | |
include: | |
# jsonref 1.0 has a backwards incompatible change - make sure we test just once with an older version of jsonref | |
- python-version: '3.11' | |
jsonref-version: "==0.3" | |
myst-parser-version: '>=3.0.0,<4' | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: x64 | |
- uses: actions/cache@v1 | |
with: | |
path: ~/.cache/pip | |
key: ${{ runner.os }}-pip-${{ hashFiles('**/setup.py') }}-${{ matrix.python-version }} | |
restore-keys: | | |
${{ runner.os }}-pip- | |
- run: pip install -e .[test] | |
- run: pip install 'jsonref${{ matrix.jsonref-version }}' | |
- run: pip install "myst-parser${{ matrix.myst-parser-version }}" | |
- run: py.test |