Skip to content

GitHub Actions & test fixes, Python versions, myst-parser versions #251

GitHub Actions & test fixes, Python versions, myst-parser versions

GitHub Actions & test fixes, Python versions, myst-parser versions #251

Workflow file for this run

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.9', '3.10', '3.11', '3.12', '3.13' ]
# 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', '>=4,<5' ]
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@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
architecture: x64
- run: pip install -e .[test]
- run: pip install 'jsonref${{ matrix.jsonref-version }}'
- run: pip install "myst-parser${{ matrix.myst-parser-version }}"
- run: py.test